From 6f7aa7967c607b8c667518314ab937c0d7547025 Mon Sep 17 00:00:00 2001 From: Geunsik Lim Date: Sat, 5 Mar 2016 12:05:12 +0900 Subject: Replace all uses of __LINUX__ with the lower case According to https://sourceforge.net/p/predef/wiki/OperatingSystems/ (Pre-defined Compiler Macros) and http://www.faqs.org/docs/Linux-HOWTO/GCC-HOWTO.html (Porting and compiling:Automatically defined symbols), the __linux__ marcro is the right way to detect systems based on the Linux kernel and is the POSIX compliant. Signed-off-by: Geunsik Lim Signed-off-by: MyungJoo Ham --- src/pal/src/exception/seh-unwind.cpp | 8 ++++---- src/pal/src/exception/seh.cpp | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/pal/src/exception') diff --git a/src/pal/src/exception/seh-unwind.cpp b/src/pal/src/exception/seh-unwind.cpp index 333544379a..ee33f7a83a 100644 --- a/src/pal/src/exception/seh-unwind.cpp +++ b/src/pal/src/exception/seh-unwind.cpp @@ -29,15 +29,15 @@ Abstract: #include #if HAVE_LIBUNWIND_H -#ifndef __LINUX__ +#ifndef __linux__ #define UNW_LOCAL_ONLY -#endif // !__LINUX__ +#endif // !__linux__ #include -#ifdef __LINUX__ +#ifdef __linux__ #ifdef HAVE_LIBUNWIND_PTRACE #include #endif // HAVE_LIBUNWIND_PTRACE -#endif // __LINUX__ +#endif // __linux__ #endif // HAVE_LIBUNWIND_H diff --git a/src/pal/src/exception/seh.cpp b/src/pal/src/exception/seh.cpp index 3f15c82156..8c640a39c7 100644 --- a/src/pal/src/exception/seh.cpp +++ b/src/pal/src/exception/seh.cpp @@ -201,7 +201,7 @@ PAL_ERROR SEHEnable(CPalThread *pthrCurrent) { #if HAVE_MACH_EXCEPTIONS return pthrCurrent->EnableMachExceptions(); -#elif __LINUX__ || defined(__FreeBSD__) || defined(__NetBSD__) +#elif __linux__ || defined(__FreeBSD__) || defined(__NetBSD__) // TODO: This needs to be implemented. Cannot put an ASSERT here // because it will make other parts of PAL fail. return NO_ERROR; @@ -230,7 +230,7 @@ PAL_ERROR SEHDisable(CPalThread *pthrCurrent) return pthrCurrent->DisableMachExceptions(); // TODO: This needs to be implemented. Cannot put an ASSERT here // because it will make other parts of PAL fail. -#elif __LINUX__ || defined(__FreeBSD__) || defined(__NetBSD__) +#elif __linux__ || defined(__FreeBSD__) || defined(__NetBSD__) return NO_ERROR; #else // HAVE_MACH_EXCEPTIONS #error not yet implemented -- cgit v1.2.3