mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-17 19:25:53 +02:00
Moved GCC ifdefs to Platform_POSIX
Moved GCC ifdefs added for Android fron SocketDefs.h to Platform_POSIX.h
This commit is contained in:
@@ -54,4 +54,28 @@
|
||||
#endif
|
||||
|
||||
|
||||
//
|
||||
// Thread-safety of local static initialization
|
||||
//
|
||||
#if __cplusplus >= 201103L || __GNUC__ >= 4 || defined(__clang__)
|
||||
#ifndef POCO_LOCAL_STATIC_INIT_IS_THREADSAFE
|
||||
#define POCO_LOCAL_STATIC_INIT_IS_THREADSAFE 1
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef __GNUC__
|
||||
#ifndef __THROW
|
||||
#ifndef __GNUC_PREREQ
|
||||
#define __GNUC_PREREQ(maj, min) (0)
|
||||
#endif
|
||||
#if defined __cplusplus && __GNUC_PREREQ (2,8)
|
||||
#define __THROW throw ()
|
||||
#else
|
||||
#define __THROW
|
||||
#endif
|
||||
#endif
|
||||
#endif // __GNUC__
|
||||
|
||||
|
||||
#endif // Foundation_Platform_POSIX_INCLUDED
|
||||
|
Reference in New Issue
Block a user