diff options
author | Geunsik Lim <geunsik.lim@samsung.com> | 2016-03-05 12:05:12 +0900 |
---|---|---|
committer | Geunsik Lim <geunsik.lim@samsung.com> | 2016-03-05 12:05:12 +0900 |
commit | 6f7aa7967c607b8c667518314ab937c0d7547025 (patch) | |
tree | 862907da843c17744e5f3cb659d61f175d927afb /src/pal/src/exception | |
parent | 34e1fad44ec969a85db8464eaab3c13b406cb5a2 (diff) | |
download | coreclr-6f7aa7967c607b8c667518314ab937c0d7547025.tar.gz coreclr-6f7aa7967c607b8c667518314ab937c0d7547025.tar.bz2 coreclr-6f7aa7967c607b8c667518314ab937c0d7547025.zip |
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 <geunsik.lim@samsung.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Diffstat (limited to 'src/pal/src/exception')
-rw-r--r-- | src/pal/src/exception/seh-unwind.cpp | 8 | ||||
-rw-r--r-- | src/pal/src/exception/seh.cpp | 4 |
2 files changed, 6 insertions, 6 deletions
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 <exception> #if HAVE_LIBUNWIND_H -#ifndef __LINUX__ +#ifndef __linux__ #define UNW_LOCAL_ONLY -#endif // !__LINUX__ +#endif // !__linux__ #include <libunwind.h> -#ifdef __LINUX__ +#ifdef __linux__ #ifdef HAVE_LIBUNWIND_PTRACE #include <libunwind-ptrace.h> #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 |