[libc-commits] [libc] [libc] Fix ifdef in compiler.h. (PR #172324)
via libc-commits
libc-commits at lists.llvm.org
Mon Dec 15 07:55:48 PST 2025
https://github.com/lntue created https://github.com/llvm/llvm-project/pull/172324
None
>From 438b896835e4f28dfdbe8a28b6dbec40affee216 Mon Sep 17 00:00:00 2001
From: Tue Ly <lntue.h at gmail.com>
Date: Mon, 15 Dec 2025 15:52:32 +0000
Subject: [PATCH] [libc] Fix ifdef in compiler.h.
---
libc/src/__support/macros/properties/compiler.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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
More information about the libc-commits
mailing list