1 #ifndef _WIN32 2 3 #ifndef APE_NOWINDOWS_H 4 #define APE_NOWINDOWS_H 5 6 #include <SupportDefs.h> 7 8 #define FALSE 0 9 #define TRUE 1 10 11 #define NEAR 12 #define FAR 13 14 //typedef unsigned int uint32; 15 //typedef int int32; 16 //typedef unsigned short uint16; 17 //typedef short int16; 18 //typedef unsigned char uint8; 19 //typedef char int8; 20 typedef char str_ansi; 21 typedef unsigned char str_utf8; 22 typedef char str_utf16; 23 24 typedef unsigned long DWORD; 25 typedef int BOOL; 26 typedef unsigned char BYTE; 27 typedef unsigned short WORD; 28 typedef float FLOAT; 29 typedef void * HANDLE; 30 typedef unsigned int UINT; 31 typedef unsigned int WPARAM; 32 typedef long LPARAM; 33 typedef const char * LPCSTR; 34 typedef const char* LPCTSTR; // ?? SHINTA 35 typedef const char* LPCWSTR; // ?? SHINTA 36 typedef char * LPSTR; 37 typedef long LRESULT; 38 typedef unsigned char UCHAR; 39 40 #define ZeroMemory(POINTER, BYTES) memset(POINTER, 0, BYTES); 41 #define max(a,b) (((a) > (b)) ? (a) : (b)) 42 #define min(a,b) (((a) < (b)) ? (a) : (b)) 43 44 //#define __stdcall 45 #define CALLBACK 46 47 #define _stricmp strcasecmp 48 #define _strnicmp strncasecmp 49 50 #define wcslen strlen 51 #define wcsicmp strcmp 52 #define _wtoi atoi 53 #define _wcsicmp strcmp 54 #define wcscmp strcmp 55 56 #define _FPOSOFF(fp) ((long)(fp).__pos) 57 #define MAX_PATH 260 58 59 #ifndef _WAVEFORMATEX_ 60 #define _WAVEFORMATEX_ 61 62 typedef struct tWAVEFORMATEX 63 { 64 WORD wFormatTag; /* format type */ 65 WORD nChannels; /* number of channels (i.e. mono, stereo...) */ 66 DWORD nSamplesPerSec; /* sample rate */ 67 DWORD nAvgBytesPerSec; /* for buffer estimation */ 68 WORD nBlockAlign; /* block size of data */ 69 WORD wBitsPerSample; /* number of bits per sample of mono data */ 70 WORD cbSize; /* the count in bytes of the size of */ 71 /* extra information (after cbSize) */ 72 } WAVEFORMATEX, *PWAVEFORMATEX, NEAR *NPWAVEFORMATEX, FAR *LPWAVEFORMATEX; 73 typedef const WAVEFORMATEX FAR *LPCWAVEFORMATEX; 74 75 const int32 ERROR_INVALID_PARAMETER = B_ERRORS_END+1; 76 77 #endif // #ifndef _WAVEFORMATEX_ 78 79 #endif // #ifndef APE_NOWINDOWS_H 80 81 #endif // #ifndef _WIN32 82