2007-03-08 04:03:40 +08:00
|
|
|
// Place holder
|
|
|
|
#define DLLSYM
|
|
|
|
#ifdef __MSW32__
|
|
|
|
#define SIGNED
|
2008-02-01 08:38:13 +08:00
|
|
|
#define snprintf _snprintf
|
2009-07-11 10:50:24 +08:00
|
|
|
#define read _read
|
|
|
|
#define write _write
|
|
|
|
#define close _close
|
|
|
|
#define lseek _lseek
|
|
|
|
#define open _open
|
|
|
|
#define ultoa _ultoa
|
|
|
|
#define ltoa _ltoa
|
|
|
|
#define strtok_r(s, d, p) strtok(s, d)
|
2008-08-15 06:47:14 +08:00
|
|
|
#if (_MSC_VER <= 1400)
|
2008-02-01 08:38:13 +08:00
|
|
|
#define vsnprintf _vsnprintf
|
2008-08-15 06:47:14 +08:00
|
|
|
#endif
|
2007-03-08 04:03:40 +08:00
|
|
|
#else
|
|
|
|
#define __UNIX__
|
|
|
|
#include <limits.h>
|
|
|
|
#ifndef PATH_MAX
|
|
|
|
#define MAX_PATH 4096
|
|
|
|
#else
|
|
|
|
#define MAX_PATH PATH_MAX
|
|
|
|
#endif
|
|
|
|
#define SIGNED signed
|
|
|
|
#endif
|