acl  3.5.3.0
fiber_cpp_define.hpp
浏览该文件的文档.
1 #pragma once
2 
3 #if defined(_WIN32) || defined (_WIN64)
4 /* typedef intptr_t ssize_t; */
5 # ifndef HAS_SSIZE_T
6 # define HAS_SSIZE_T
7 /* typedef intptr_t ssize_t; */
8 # if defined(_WIN64)
9 typedef __int64 ssize_t;
10 # elif defined(_WIN32)
11 typedef int ssize_t;
12 # else
13 typedef long ssize_t;
14 # endif
15 # endif
16 #else
17 #include <sys/types.h>
18 #include <sys/socket.h>
19 #endif
20 
21 #ifdef FIBER_CPP_LIB
22 # ifndef FIBER_CPP_API
23 # define FIBER_CPP_API
24 # endif
25 #elif defined(FIBER_DLL) // || defined(_WINDLL)
26 # if defined(FIBER_CPP_EXPORTS) || defined(fibercpp_EXPORTS)
27 # ifndef FIBER_CPP_API
28 # define FIBER_CPP_API __declspec(dllexport)
29 # endif
30 # elif !defined(FIBER_CPP_API)
31 # define FIBER_CPP_API __declspec(dllimport)
32 # endif
33 #elif !defined(FIBER_CPP_API)
34 # define FIBER_CPP_API
35 #endif