mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-17 11:05:03 +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:
@@ -201,8 +201,8 @@
|
|||||||
#define POCO_ARCH_BIG_ENDIAN 1
|
#define POCO_ARCH_BIG_ENDIAN 1
|
||||||
#endif
|
#endif
|
||||||
#elif defined (nios2) || defined(__nios2) || defined(__nios2__)
|
#elif defined (nios2) || defined(__nios2) || defined(__nios2__)
|
||||||
#define POCO_ARCH POCO_ARCH_NIOS2
|
#define POCO_ARCH POCO_ARCH_NIOS2
|
||||||
#if defined(__nios2_little_endian) || defined(nios2_little_endian) || defined(__nios2_little_endian__)
|
#if defined(__nios2_little_endian) || defined(nios2_little_endian) || defined(__nios2_little_endian__)
|
||||||
#define POCO_ARCH_LITTLE_ENDIAN 1
|
#define POCO_ARCH_LITTLE_ENDIAN 1
|
||||||
#else
|
#else
|
||||||
#define POCO_ARCH_BIG_ENDIAN 1
|
#define POCO_ARCH_BIG_ENDIAN 1
|
||||||
@@ -216,14 +216,4 @@
|
|||||||
#endif
|
#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
|
|
||||||
|
|
||||||
|
|
||||||
#endif // Foundation_Platform_INCLUDED
|
#endif // Foundation_Platform_INCLUDED
|
||||||
|
@@ -54,4 +54,28 @@
|
|||||||
#endif
|
#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
|
#endif // Foundation_Platform_POSIX_INCLUDED
|
||||||
|
@@ -39,16 +39,6 @@
|
|||||||
#ifndef Net_SocketDefs_INCLUDED
|
#ifndef Net_SocketDefs_INCLUDED
|
||||||
#define Net_SocketDefs_INCLUDED
|
#define Net_SocketDefs_INCLUDED
|
||||||
|
|
||||||
#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
|
|
||||||
|
|
||||||
#if defined(POCO_OS_FAMILY_WINDOWS)
|
#if defined(POCO_OS_FAMILY_WINDOWS)
|
||||||
#include "Poco/UnWindows.h"
|
#include "Poco/UnWindows.h"
|
||||||
|
Reference in New Issue
Block a user