[libc-commits] [libc] [libc] Fix ifdef in compiler.h. (PR #172324)

via libc-commits libc-commits at lists.llvm.org
Mon Dec 15 07:56:21 PST 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libc

Author: None (lntue)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/172324.diff


1 Files Affected:

- (modified) libc/src/__support/macros/properties/compiler.h (+1-1) 


``````````diff
diff --git a/libc/src/__support/macros/properties/compiler.h b/libc/src/__support/macros/properties/compiler.h
index d51bdfcf5760c..592f6c2ba1c95 100644
--- a/libc/src/__support/macros/properties/compiler.h
+++ b/libc/src/__support/macros/properties/compiler.h
@@ -38,7 +38,7 @@
 #define LIBC_COMPILER_IS_MSVC
 // https://learn.microsoft.com/en-us/cpp/preprocessor/predefined-macros
 #define LIBC_COMPILER_MSVC_VER (_MSC_VER)
-#ifdef(_M_X64)
+#ifdef _M_X64
 #define LIBC_COMPILER_IS_MSVC_X64
 #else
 #define LIBC_COMPILER_IS_MSVC_X86

``````````

</details>


https://github.com/llvm/llvm-project/pull/172324


More information about the libc-commits mailing list