Skip to content

Commit 5d679fc

Browse files
committed
[libc] Clean up Windows macros
This clean-up removes checks for _WIN64, as the _WIN32 macro returns 1 whenever the compilation targe is 32- or 64-bit ARM. Reviewed By: aeubanks Differential Revision: https://reviews.llvm.org/D106706
1 parent 04f5eb4 commit 5d679fc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

libc/utils/FPUtil/PlatformDefs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#define X87_FPU
1414
#endif
1515

16-
#if defined(_WIN32) || defined(_WIN64)
16+
#if defined(_WIN32)
1717
#define LONG_DOUBLE_IS_DOUBLE
1818
#endif
1919

libc/utils/FPUtil/TestHelpers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ template void describeValue<double>(const char *, double,
7474
template void describeValue<long double>(const char *, long double,
7575
testutils::StreamWrapper &);
7676

77-
#if defined(_WIN32) || defined(_WIN64)
77+
#if defined(_WIN32)
7878
#define sigjmp_buf jmp_buf
7979
#define sigsetjmp(buf, save) setjmp(buf)
8080
#define siglongjmp(buf, val) longjmp(buf, val)

libc/utils/UnitTest/PlatformDefs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#ifndef LLVM_LIBC_UTILS_UNITTEST_PLATFORMDEFS_H
1010
#define LLVM_LIBC_UTILS_UNITTEST_PLATFORMDEFS_H
1111

12-
#if !(defined(_WIN32) || defined(_WIN64))
12+
#if !defined(_WIN32)
1313
#define ENABLE_SUBPROCESS_TESTS
1414
#endif
1515

0 commit comments

Comments
 (0)