[libc-commits] [libc] c97cb11 - [libc] Relocate the closing directive of #ifdef

Hedin GarcĂ­a via libc-commits libc-commits at lists.llvm.org
Thu Jul 15 13:24:52 PDT 2021


Author: Hedin Garca
Date: 2021-07-15T20:24:29Z
New Revision: c97cb11efdfacff6231ee058b413df252a8be0d9

URL: https://github.com/llvm/llvm-project/commit/c97cb11efdfacff6231ee058b413df252a8be0d9
DIFF: https://github.com/llvm/llvm-project/commit/c97cb11efdfacff6231ee058b413df252a8be0d9.diff

LOG: [libc] Relocate the closing directive of #ifdef

Changed where an #endif was placed because previously it
prevented three macro definitions from being enable in Windows.

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D106087

Added: 
    

Modified: 
    libc/utils/UnitTest/LibcTest.h

Removed: 
    


################################################################################
diff  --git a/libc/utils/UnitTest/LibcTest.h b/libc/utils/UnitTest/LibcTest.h
index d50f88d191a7e..f72d6c17fd5c7 100644
--- a/libc/utils/UnitTest/LibcTest.h
+++ b/libc/utils/UnitTest/LibcTest.h
@@ -380,12 +380,12 @@ template <typename... Types> using TypeList = internal::TypeList<Types...>;
   if (!EXPECT_DEATH(FUNC, EXIT))                                               \
   return
 
+#endif // ENABLE_SUBPROCESS_TESTS
+
 #define __CAT1(a, b) a##b
 #define __CAT(a, b) __CAT1(a, b)
 #define UNIQUE_VAR(prefix) __CAT(prefix, __LINE__)
 
-#endif // ENABLE_SUBPROCESS_TESTS
-
 #define EXPECT_THAT(MATCH, MATCHER)                                            \
   do {                                                                         \
     auto UNIQUE_VAR(__matcher) = (MATCHER);                                    \


        


More information about the libc-commits mailing list