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; 20typedef char str_ansi; 21typedef unsigned char str_utf8; 22typedef char str_utf16; 23 24typedef unsigned long DWORD; 25typedef int BOOL; 26typedef unsigned char BYTE; 27typedef unsigned short WORD; 28typedef float FLOAT; 29typedef void * HANDLE; 30typedef unsigned int UINT; 31typedef unsigned int WPARAM; 32typedef long LPARAM; 33typedef const char * LPCSTR; 34typedef const char* LPCTSTR; // ?? SHINTA 35typedef const char* LPCWSTR; // ?? SHINTA 36typedef char * LPSTR; 37typedef long LRESULT; 38typedef 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 65typedef 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; 76typedef const WAVEFORMATEX FAR *LPCWAVEFORMATEX; 77 78const 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