123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144 |
- #ifndef WINDOWS_CONFIG_HACKERY
- #define WINDOWS_CONFIG_HACKERY 1
- #ifndef __windows__
- # define __windows__ 4
- #endif
- #define snprintf _snprintf
- #define SIZEOF_INT 4
- #define SIZEOF_CHARP 4
- #define SIZEOF_LONG 4
- #define SIZEOF_SHORT 2
- #define HAVE_LIMITS_H 1
- #define HAVE_STRDUP 1
- #define HAVE_STRCHR 1
- #define HAVE_FCNTL_H 1
- #ifndef _WSPIAPI_H_
- #define _WSPIAPI_H_
- #endif
- #ifndef _WINSOCKAPI_
- #define _WINSOCKAPI_
- #endif
- #ifndef __RPCASYNC_H__
- #define __RPCASYNC_H__
- #endif
- #include <windows.h>
- #include <winsock2.h>
- #include <limits.h>
- #define strdup _strdup
- #define stat _stat
- #define unlink _unlink
- #define fchmod( _x, _y )
- #define ssize_t SSIZE_T
- #include <io.h>
- #define open _open
- #define close _close
- #define read _read
- #define write _write
- #define lseek _lseek
- #define pipe _pipe
- #define dup2 _dup2
- #define O_RDWR _O_RDWR
- #define O_RDONLY _O_RDONLY
- #define O_EXCL _O_EXCL
- #ifndef S_ISREG
- # define S_IFREG _S_IFREG
- # define S_ISREG(mode) (((mode) & S_IFREG) == S_IFREG)
- #endif
- #ifndef S_ISDIR
- # define S_IFDIR _S_IFDIR
- # define S_ISDIR(mode) (((mode) & S_IFDIR) == S_IFDIR)
- #endif
- #if defined(HAVE_INTTYPES_H)
- # include <inttypes.h>
- #elif defined(HAVE_STDINT_H)
- # include <stdint.h>
- # define MISSING_INTTYPES_H 1
- #elif ! defined(ADDED_EXACT_SIZE_INTEGERS)
- # define ADDED_EXACT_SIZE_INTEGERS 1
- # define MISSING_INTTYPES_H 1
- typedef __int8 int8_t;
- typedef unsigned __int8 uint8_t;
- typedef __int16 int16_t;
- typedef unsigned __int16 uint16_t;
- typedef __int32 int32_t;
- typedef unsigned __int32 uint32_t;
- typedef __int64 int64_t;
- typedef unsigned __int64 uint64_t;
- typedef unsigned long uintptr_t;
- typedef long intptr_t;
- #endif
- #endif
|