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 42 #if __GNUC__ == 2 43 #define max(a,b) (((a) > (b)) ? (a) : (b)) 44 #define min(a,b) (((a) < (b)) ? (a) : (b)) 45 #endif 46 47 //#define __stdcall 48 #define CALLBACK 49 50 #define _stricmp strcasecmp 51 #define _strnicmp strncasecmp 52 53 #define wcslen strlen 54 #define wcsicmp strcmp 55 #define _wtoi atoi 56 #define _wcsicmp strcmp 57 #define wcscmp strcmp 58 59 #define _FPOSOFF(fp) ((long)(fp).__pos) 60 #define MAX_PATH 260 61 62 #ifndef _WAVEFORMATEX_ 63 #define _WAVEFORMATEX_ 64 65 typedef struct tWAVEFORMATEX 66 { 67 WORD wFormatTag; /* format type */ 68 WORD nChannels; /* number of channels (i.e. mono, stereo...) */ 69 DWORD nSamplesPerSec; /* sample rate */ 70 DWORD nAvgBytesPerSec; /* for buffer estimation */ 71 WORD nBlockAlign; /* block size of data */ 72 WORD wBitsPerSample; /* number of bits per sample of mono data */ 73 WORD cbSize; /* the count in bytes of the size of */ 74 /* extra information (after cbSize) */ 75 } WAVEFORMATEX, *PWAVEFORMATEX, NEAR *NPWAVEFORMATEX, FAR *LPWAVEFORMATEX; 76 typedef const WAVEFORMATEX FAR *LPCWAVEFORMATEX; 77 78 const int32 ERROR_INVALID_PARAMETER = B_ERRORS_END+1; 79 80 #endif // #ifndef _WAVEFORMATEX_ 81 82 #endif // #ifndef APE_NOWINDOWS_H 83 84 #endif // #ifndef _WIN32 85