mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-01-19 03:57:14 +01:00
9298065cef
CPR has features disabled and PCRE is fully disabled until updated to new code.
53 lines
1.4 KiB
C++
53 lines
1.4 KiB
C++
/* SPDX-License-Identifier: MPL-2.0 */
|
|
|
|
#ifndef __ZMQ_PLATFORM_HPP_INCLUDED__
|
|
#define __ZMQ_PLATFORM_HPP_INCLUDED__
|
|
|
|
// This file provides the configuration for Linux, Windows, and OS/X
|
|
// as determined by ZMQ_HAVE_XXX macros passed from project.gyp
|
|
|
|
// Check that we're being called from our gyp makefile
|
|
#ifndef ZMQ_GYP_BUILD
|
|
# error "foreign platform.hpp detected, please re-configure"
|
|
#endif
|
|
|
|
// Set for all platforms
|
|
#define ZMQ_HAVE_CURVE 1
|
|
|
|
#if defined ZMQ_HAVE_WINDOWS
|
|
# define ZMQ_USE_SELECT 1
|
|
|
|
#elif defined ZMQ_HAVE_OSX
|
|
# define ZMQ_USE_KQUEUE 1
|
|
# define HAVE_POSIX_MEMALIGN 1
|
|
# define ZMQ_HAVE_IFADDRS 1
|
|
# define ZMQ_HAVE_SO_KEEPALIVE 1
|
|
# define ZMQ_HAVE_TCP_KEEPALIVE 1
|
|
# define ZMQ_HAVE_TCP_KEEPCNT 1
|
|
# define ZMQ_HAVE_TCP_KEEPINTVL 1
|
|
# define ZMQ_HAVE_UIO 1
|
|
# define HAVE_FORK 1
|
|
|
|
#elif defined ZMQ_HAVE_LINUX
|
|
# define ZMQ_USE_EPOLL 1
|
|
# define HAVE_POSIX_MEMALIGN 1
|
|
# define ZMQ_HAVE_EVENTFD 1
|
|
# define ZMQ_HAVE_IFADDRS 1
|
|
# define ZMQ_HAVE_SOCK_CLOEXEC 1
|
|
# define ZMQ_HAVE_SO_BINDTODEVICE 1
|
|
# define ZMQ_HAVE_SO_KEEPALIVE 1
|
|
# define ZMQ_HAVE_SO_PEERCRED 1
|
|
# define ZMQ_HAVE_TCP_KEEPCNT 1
|
|
# define ZMQ_HAVE_TCP_KEEPIDLE 1
|
|
# define ZMQ_HAVE_TCP_KEEPINTVL 1
|
|
# define ZMQ_HAVE_UIO 1
|
|
# define HAVE_CLOCK_GETTIME 1
|
|
# define HAVE_FORK 1
|
|
# define HAVE_ACCEPT4 1
|
|
|
|
#else
|
|
# error "No platform defined, abandoning"
|
|
#endif
|
|
|
|
#endif
|