gyp/platform.hpp
Go to the documentation of this file.
1 /* SPDX-License-Identifier: MPL-2.0 */
2 
3 #ifndef __ZMQ_PLATFORM_HPP_INCLUDED__
4 #define __ZMQ_PLATFORM_HPP_INCLUDED__
5 
6 // This file provides the configuration for Linux, Windows, and OS/X
7 // as determined by ZMQ_HAVE_XXX macros passed from project.gyp
8 
9 // Check that we're being called from our gyp makefile
10 #ifndef ZMQ_GYP_BUILD
11 # error "foreign platform.hpp detected, please re-configure"
12 #endif
13 
14 // Set for all platforms
15 #define ZMQ_HAVE_CURVE 1
16 
17 #if defined ZMQ_HAVE_WINDOWS
18 # define ZMQ_USE_SELECT 1
19 
20 #elif defined ZMQ_HAVE_OSX
21 # define ZMQ_USE_KQUEUE 1
22 # define HAVE_POSIX_MEMALIGN 1
23 # define ZMQ_HAVE_IFADDRS 1
24 # define ZMQ_HAVE_SO_KEEPALIVE 1
25 # define ZMQ_HAVE_TCP_KEEPALIVE 1
26 # define ZMQ_HAVE_TCP_KEEPCNT 1
27 # define ZMQ_HAVE_TCP_KEEPINTVL 1
28 # define ZMQ_HAVE_UIO 1
29 # define HAVE_FORK 1
30 
31 #elif defined ZMQ_HAVE_LINUX
32 # define ZMQ_USE_EPOLL 1
33 # define HAVE_POSIX_MEMALIGN 1
34 # define ZMQ_HAVE_EVENTFD 1
35 # define ZMQ_HAVE_IFADDRS 1
36 # define ZMQ_HAVE_SOCK_CLOEXEC 1
37 # define ZMQ_HAVE_SO_BINDTODEVICE 1
38 # define ZMQ_HAVE_SO_KEEPALIVE 1
39 # define ZMQ_HAVE_SO_PEERCRED 1
40 # define ZMQ_HAVE_TCP_KEEPCNT 1
41 # define ZMQ_HAVE_TCP_KEEPIDLE 1
42 # define ZMQ_HAVE_TCP_KEEPINTVL 1
43 # define ZMQ_HAVE_UIO 1
44 # define HAVE_CLOCK_GETTIME 1
45 # define HAVE_FORK 1
46 # define HAVE_ACCEPT4 1
47 
48 #else
49 # error "No platform defined, abandoning"
50 #endif
51 
52 #endif


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:06:57