2012-12-31 23:52:32 +01:00
|
|
|
#ifndef __ZMQ_PLATFORM_HPP_INCLUDED__
|
|
|
|
#define __ZMQ_PLATFORM_HPP_INCLUDED__
|
|
|
|
|
2019-02-11 13:05:04 +01:00
|
|
|
#cmakedefine ZMQ_USE_CV_IMPL_STL11
|
|
|
|
#cmakedefine ZMQ_USE_CV_IMPL_WIN32API
|
|
|
|
#cmakedefine ZMQ_USE_CV_IMPL_PTHREADS
|
|
|
|
#cmakedefine ZMQ_USE_CV_IMPL_NONE
|
|
|
|
|
2018-05-22 15:57:20 +02:00
|
|
|
#cmakedefine ZMQ_IOTHREAD_POLLER_USE_KQUEUE
|
|
|
|
#cmakedefine ZMQ_IOTHREAD_POLLER_USE_EPOLL
|
|
|
|
#cmakedefine ZMQ_IOTHREAD_POLLER_USE_EPOLL_CLOEXEC
|
|
|
|
#cmakedefine ZMQ_IOTHREAD_POLLER_USE_DEVPOLL
|
|
|
|
#cmakedefine ZMQ_IOTHREAD_POLLER_USE_POLL
|
|
|
|
#cmakedefine ZMQ_IOTHREAD_POLLER_USE_SELECT
|
|
|
|
|
|
|
|
#cmakedefine ZMQ_POLL_BASED_ON_SELECT
|
|
|
|
#cmakedefine ZMQ_POLL_BASED_ON_POLL
|
2012-12-31 23:52:32 +01:00
|
|
|
|
2019-01-19 20:39:42 +01:00
|
|
|
#cmakedefine ZMQ_CACHELINE_SIZE @ZMQ_CACHELINE_SIZE@
|
|
|
|
|
2012-12-31 23:52:32 +01:00
|
|
|
#cmakedefine ZMQ_FORCE_MUTEXES
|
|
|
|
|
2014-03-18 21:04:52 +01:00
|
|
|
#cmakedefine HAVE_FORK
|
2012-12-31 23:52:32 +01:00
|
|
|
#cmakedefine HAVE_CLOCK_GETTIME
|
|
|
|
#cmakedefine HAVE_GETHRTIME
|
2016-04-10 23:45:35 +02:00
|
|
|
#cmakedefine HAVE_MKDTEMP
|
2012-12-31 23:52:32 +01:00
|
|
|
#cmakedefine ZMQ_HAVE_UIO
|
|
|
|
|
2018-05-30 22:03:19 +02:00
|
|
|
#cmakedefine ZMQ_HAVE_NOEXCEPT
|
|
|
|
|
2012-12-31 23:52:32 +01:00
|
|
|
#cmakedefine ZMQ_HAVE_EVENTFD
|
2016-12-26 18:18:00 +01:00
|
|
|
#cmakedefine ZMQ_HAVE_EVENTFD_CLOEXEC
|
2012-12-31 23:52:32 +01:00
|
|
|
#cmakedefine ZMQ_HAVE_IFADDRS
|
2017-08-19 13:07:23 +02:00
|
|
|
#cmakedefine ZMQ_HAVE_SO_BINDTODEVICE
|
2012-12-31 23:52:32 +01:00
|
|
|
|
2013-12-06 19:55:44 +01:00
|
|
|
#cmakedefine ZMQ_HAVE_SO_PEERCRED
|
|
|
|
#cmakedefine ZMQ_HAVE_LOCAL_PEERCRED
|
|
|
|
|
2017-09-01 11:15:32 +02:00
|
|
|
#cmakedefine ZMQ_HAVE_O_CLOEXEC
|
|
|
|
|
2012-12-31 23:52:32 +01:00
|
|
|
#cmakedefine ZMQ_HAVE_SOCK_CLOEXEC
|
|
|
|
#cmakedefine ZMQ_HAVE_SO_KEEPALIVE
|
|
|
|
#cmakedefine ZMQ_HAVE_TCP_KEEPCNT
|
|
|
|
#cmakedefine ZMQ_HAVE_TCP_KEEPIDLE
|
|
|
|
#cmakedefine ZMQ_HAVE_TCP_KEEPINTVL
|
|
|
|
#cmakedefine ZMQ_HAVE_TCP_KEEPALIVE
|
2017-02-28 20:45:23 +01:00
|
|
|
#cmakedefine ZMQ_HAVE_PTHREAD_SETNAME_1
|
|
|
|
#cmakedefine ZMQ_HAVE_PTHREAD_SETNAME_2
|
|
|
|
#cmakedefine ZMQ_HAVE_PTHREAD_SETNAME_3
|
|
|
|
#cmakedefine ZMQ_HAVE_PTHREAD_SET_NAME
|
2019-12-13 14:42:19 +01:00
|
|
|
#cmakedefine ZMQ_HAVE_PTHREAD_SET_AFFINITY
|
2017-11-17 19:40:53 +01:00
|
|
|
#cmakedefine HAVE_ACCEPT4
|
2019-03-18 11:27:45 +01:00
|
|
|
#cmakedefine HAVE_STRNLEN
|
2019-12-11 13:33:00 +01:00
|
|
|
#cmakedefine ZMQ_HAVE_STRLCPY
|
2019-12-28 15:31:35 +01:00
|
|
|
#cmakedefine ZMQ_HAVE_LIBBSD
|
2012-12-31 23:52:32 +01:00
|
|
|
|
2019-10-19 14:46:53 +02:00
|
|
|
#cmakedefine ZMQ_HAVE_IPC
|
|
|
|
|
2019-09-11 12:09:22 +02:00
|
|
|
#cmakedefine ZMQ_USE_BUILTIN_SHA1
|
|
|
|
#cmakedefine ZMQ_USE_NSS
|
|
|
|
#cmakedefine ZMQ_HAVE_WS
|
2020-04-14 00:03:19 +02:00
|
|
|
#cmakedefine ZMQ_HAVE_WSS
|
|
|
|
#cmakedefine ZMQ_HAVE_TIPC
|
2019-09-11 12:09:22 +02:00
|
|
|
|
2012-12-31 23:52:32 +01:00
|
|
|
#cmakedefine ZMQ_HAVE_OPENPGM
|
2020-06-07 11:39:02 +02:00
|
|
|
#cmakedefine ZMQ_HAVE_NORM
|
2012-12-31 23:52:32 +01:00
|
|
|
#cmakedefine ZMQ_MAKE_VALGRIND_HAPPY
|
|
|
|
|
2020-04-14 00:03:19 +02:00
|
|
|
#cmakedefine ZMQ_BUILD_DRAFT_API
|
2016-02-11 18:06:07 +01:00
|
|
|
#cmakedefine ZMQ_HAVE_CURVE
|
2016-02-11 22:39:40 +01:00
|
|
|
#cmakedefine ZMQ_USE_TWEETNACL
|
2017-02-22 23:28:05 +01:00
|
|
|
#cmakedefine ZMQ_USE_LIBSODIUM
|
2017-08-10 19:04:15 +02:00
|
|
|
#cmakedefine SODIUM_STATIC
|
2020-04-14 00:03:19 +02:00
|
|
|
#cmakedefine ZMQ_USE_GNUTLS
|
|
|
|
#cmakedefine ZMQ_USE_RADIX_TREE
|
2020-12-23 12:32:16 +01:00
|
|
|
#cmakedefine HAVE_IF_NAMETOINDEX
|
2012-12-31 23:52:32 +01:00
|
|
|
|
|
|
|
#ifdef _AIX
|
|
|
|
#define ZMQ_HAVE_AIX
|
|
|
|
#endif
|
|
|
|
|
2018-07-18 20:14:33 +02:00
|
|
|
#if defined __ANDROID__
|
2012-12-31 23:52:32 +01:00
|
|
|
#define ZMQ_HAVE_ANDROID
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined __CYGWIN__
|
|
|
|
#define ZMQ_HAVE_CYGWIN
|
|
|
|
#endif
|
|
|
|
|
2013-01-02 03:04:19 +01:00
|
|
|
#if defined __MINGW32__
|
|
|
|
#define ZMQ_HAVE_MINGW32
|
|
|
|
#endif
|
|
|
|
|
2019-08-06 04:37:50 +02:00
|
|
|
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
|
2012-12-31 23:52:32 +01:00
|
|
|
#define ZMQ_HAVE_FREEBSD
|
|
|
|
#endif
|
|
|
|
|
2019-08-06 04:37:50 +02:00
|
|
|
#if defined(__DragonFly__)
|
|
|
|
#define ZMQ_HAVE_FREEBSD
|
|
|
|
#define ZMQ_HAVE_DRAGONFLY
|
|
|
|
#endif
|
|
|
|
|
2012-12-31 23:52:32 +01:00
|
|
|
#if defined __hpux
|
|
|
|
#define ZMQ_HAVE_HPUX
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined __linux__
|
|
|
|
#define ZMQ_HAVE_LINUX
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined __NetBSD__
|
|
|
|
#define ZMQ_HAVE_NETBSD
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined __OpenBSD__
|
|
|
|
#define ZMQ_HAVE_OPENBSD
|
|
|
|
#endif
|
|
|
|
|
2019-10-19 14:46:53 +02:00
|
|
|
// TODO better move OS-specific defines to the automake files, and check for availability of IPC with an explicit test there
|
2012-12-31 23:52:32 +01:00
|
|
|
#if defined __VMS
|
|
|
|
#define ZMQ_HAVE_OPENVMS
|
2019-10-19 14:46:53 +02:00
|
|
|
#undef ZMQ_HAVE_IPC
|
2012-12-31 23:52:32 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined __APPLE__
|
|
|
|
#define ZMQ_HAVE_OSX
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined __QNXNTO__
|
|
|
|
#define ZMQ_HAVE_QNXNTO
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(sun) || defined(__sun)
|
|
|
|
#define ZMQ_HAVE_SOLARIS
|
|
|
|
#endif
|
|
|
|
|
2013-01-28 00:09:32 +01:00
|
|
|
#cmakedefine ZMQ_HAVE_WINDOWS
|
2017-04-04 10:50:33 +02:00
|
|
|
#cmakedefine ZMQ_HAVE_WINDOWS_UWP
|
2012-12-31 23:52:32 +01:00
|
|
|
|
2016-02-11 18:06:07 +01:00
|
|
|
#endif
|