| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- //comment: libtoolkit refer it.
- #ifdef _WIN32
- #include "targetver.h"
- #include <WinSock2.h>
- #ifndef WIN32_LEAN_AND_MEAN
- #define WIN32_LEAN_AND_MEAN
- #endif //WIN32_LEAN_AND_MEAN
- #include <Mmsystem.h>
- #include <process.h>
- #include <crtdbg.h>
- #include <locale.h>
- #include <time.h>
- #endif // _WIN32
- #include <stdlib.h>
- #include <stdio.h>
- #include <assert.h>
- #include <errno.h>
- #include <time.h>
- #include <string.h>
- #ifdef SPABASE_LINKED_AS_STATIC_LIBRARY
- #define SPBASE_API
- #else //SPABASE_LINKED_AS_STATIC_LIBRARY
- #ifdef _WIN32
- #ifdef SPBASE_EXPORTS
- #ifndef SPBASE_API
- #define SPBASE_API __declspec(dllexport)
- #endif
- #else
- #ifndef SPBASE_API
- #define SPBASE_API __declspec(dllimport)
- //#pragma comment(lib, "SpBase.lib")
- #endif
- #endif
- # elif ( defined(__GNUC__) && __GNUC__ >= 4 )
- #define SPBASE_API __attribute__((visibility("default")))
- #else // _WIN32
- #define SPBASE_API
- #endif // _WIN32
- #endif //SPABASE_LINKED_AS_STATIC_LIBRARY
- #ifdef _WIN32
- #ifndef u__int64_t
- #define u__int64_t unsigned __int64
- #endif //u__int64_t
- #endif
|