#ifndef APE_NOWINDOWS_H #define APE_NOWINDOWS_H #ifndef _WIN32 #ifndef FALSE #define FALSE 0 #endif #ifndef TRUE #define TRUE 1 #endif #define NEAR #define FAR #define __int64 long long #define __int32 int #define __int16 short #define __int8 char typedef unsigned long DWORD; typedef int BOOL; typedef unsigned char BYTE; typedef unsigned short WORD; typedef float FLOAT; typedef void * HANDLE; typedef unsigned int UINT; typedef unsigned int WPARAM; typedef long LPARAM; typedef const char * LPCSTR; typedef char * LPSTR; typedef long LRESULT; #define ZeroMemory(POINTER, BYTES) memset(POINTER, 0, BYTES); #define max(a,b) (((a) > (b)) ? (a) : (b)) #define min(a,b) (((a) < (b)) ? (a) : (b)) #define __stdcall #define CALLBACK #define _stricmp strcasecmp #define _strnicmp strncasecmp #define _FPOSOFF(fp) ((long)(fp).__pos) #define MAX_PATH 4096 #ifndef _WAVEFORMATEX_ #define _WAVEFORMATEX_ typedef struct tWAVEFORMATEX { WORD wFormatTag; /* format type */ WORD nChannels; /* number of channels (i.e. mono, stereo...) */ DWORD nSamplesPerSec; /* sample rate */ DWORD nAvgBytesPerSec; /* for buffer estimation */ WORD nBlockAlign; /* block size of data */ WORD wBitsPerSample; /* number of bits per sample of mono data */ WORD cbSize; /* the count in bytes of the size of */ /* extra information (after cbSize) */ } WAVEFORMATEX, *PWAVEFORMATEX, NEAR *NPWAVEFORMATEX, FAR *LPWAVEFORMATEX; typedef const WAVEFORMATEX FAR *LPCWAVEFORMATEX; #endif // #ifndef _WAVEFORMATEX_ #endif // #ifndef _WIN32 #endif /* APE_NOWINDOWS_H */