2019-07-27 22:44:32 +08:00
|
|
|
|
#pragma once
|
2018-11-30 14:38:22 +08:00
|
|
|
|
|
|
|
|
|
#if defined(_WIN32) || defined (_WIN64)
|
|
|
|
|
/* typedef intptr_t ssize_t; */
|
|
|
|
|
typedef long ssize_t;
|
|
|
|
|
#else
|
|
|
|
|
#include <sys/types.h>
|
|
|
|
|
#include <sys/socket.h>
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifdef FIBER_CPP_LIB
|
|
|
|
|
# ifndef FIBER_CPP_API
|
|
|
|
|
# define FIBER_CPP_API
|
|
|
|
|
# endif
|
|
|
|
|
#elif defined(FIBER_DLL) || defined(_WINDLL)
|
|
|
|
|
# if defined(FIBER_CPP_EXPORTS) || defined(fibercpp_EXPORTS)
|
|
|
|
|
# ifndef FIBER_CPP_API
|
|
|
|
|
# define FIBER_CPP_API __declspec(dllexport)
|
|
|
|
|
# endif
|
|
|
|
|
# elif !defined(FIBER_CPP_API)
|
|
|
|
|
# define FIBER_CPP_API __declspec(dllimport)
|
|
|
|
|
# endif
|
|
|
|
|
#elif !defined(FIBER_CPP_API)
|
|
|
|
|
# define FIBER_CPP_API
|
|
|
|
|
#endif
|