Changed check for GCC version 4.4
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1119 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
parent
be16975d6a
commit
e20e694104
1 changed files with 10 additions and 7 deletions
|
@ -40,19 +40,22 @@
|
||||||
// The __APPLE__ macro does not refer to a compiler, but to the Apple OSX operating system.
|
// The __APPLE__ macro does not refer to a compiler, but to the Apple OSX operating system.
|
||||||
#if defined( __APPLE__ )
|
#if defined( __APPLE__ )
|
||||||
#warning "GCC for Apple does not allow thread_local storage, so you can not use some parts of Loki."
|
#warning "GCC for Apple does not allow thread_local storage, so you can not use some parts of Loki."
|
||||||
#undef COMPILER_ALLOWS_THREAD_LOCAL_STORAGE
|
#undef LOKI_THINKS_COMPILER_ALLOWS_THREAD_LOCAL_STORAGE
|
||||||
|
|
||||||
#elif defined( __CYGWIN__ )
|
#elif defined( __CYGWIN__ )
|
||||||
#if ( __GNUC__ <= 3 )
|
#if ( __GNUC__ <= 3 )
|
||||||
#warning "Older versions of GCC for Cygwin do not allow thread_local storage, so you can not use some parts of Loki."
|
#warning "Older versions of GCC for Cygwin do not allow thread_local storage, so you can not use some parts of Loki."
|
||||||
#undef COMPILER_ALLOWS_THREAD_LOCAL_STORAGE
|
#undef LOKI_THINKS_COMPILER_ALLOWS_THREAD_LOCAL_STORAGE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#elif ( __GNUC__ == 4 ) // GNU versions other than Cygwin.
|
#elif ( __GNUC__ == 4 ) // GNU versions other than Cygwin.
|
||||||
#if ( __GNUC_MINOR__ == 4 )
|
#if ( __GNUC_MINOR__ < 4 )
|
||||||
#warning "GCC version 4.4 implements thread_local storage incorrectly, so you can not use some parts of Loki."
|
#warning "GCC versions before 4.4 implement thread_local storage incorrectly, so you can not use some parts of Loki."
|
||||||
#undef COMPILER_ALLOWS_THREAD_LOCAL_STORAGE
|
#undef LOKI_THINKS_COMPILER_ALLOWS_THREAD_LOCAL_STORAGE
|
||||||
|
#elif ( __GNUC_MINOR__ == 4 )
|
||||||
|
#warning "GCC version 4.4 implements thread_local storage incorrectly for some platforms but not others."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue