Platform_POSIX.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. //
  2. // Platform_POSIX.h
  3. //
  4. // Library: Foundation
  5. // Package: Core
  6. // Module: Platform
  7. //
  8. // Platform and architecture identification macros
  9. // and platform-specific definitions for various POSIX platforms
  10. //
  11. // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
  12. // and Contributors.
  13. //
  14. // SPDX-License-Identifier: BSL-1.0
  15. //
  16. #ifndef Foundation_Platform_POSIX_INCLUDED
  17. #define Foundation_Platform_POSIX_INCLUDED
  18. //
  19. // PA-RISC based HP-UX platforms have some issues...
  20. //
  21. #if defined(hpux) || defined(_hpux)
  22. #if defined(__hppa) || defined(__hppa__)
  23. #define POCO_NO_SYS_SELECT_H 1
  24. #if defined(__HP_aCC)
  25. #define POCO_NO_TEMPLATE_ICOMPARE 1
  26. #endif
  27. #endif
  28. #endif
  29. //
  30. // Thread-safety of local static initialization
  31. //
  32. #if __cplusplus >= 201103L || __GNUC__ >= 4 || defined(__clang__)
  33. #ifndef POCO_LOCAL_STATIC_INIT_IS_THREADSAFE
  34. #define POCO_LOCAL_STATIC_INIT_IS_THREADSAFE 1
  35. #endif
  36. #endif
  37. //
  38. // No syslog.h on QNX/BB10
  39. //
  40. #if defined(__QNXNTO__)
  41. #define POCO_NO_SYSLOGCHANNEL
  42. #endif
  43. #endif // Foundation_Platform_POSIX_INCLUDED