3
#ifndef APE_NOWINDOWS_H
4
#define APE_NOWINDOWS_H
17
typedef unsigned int uint32;
19
typedef unsigned short uint16;
21
typedef unsigned char uint8;
23
typedef char str_ansi;
24
typedef char str_utf8;
25
typedef wchar_t str_utf16;
27
typedef unsigned long DWORD;
29
typedef unsigned char BYTE;
30
typedef unsigned short WORD;
32
typedef void * HANDLE;
33
typedef unsigned int UINT;
34
typedef unsigned int WPARAM;
36
typedef const char * LPCSTR;
39
typedef const wchar_t * LPCWSTR;
41
#define _wtoi(ws) wcstol(ws, NULL, 2)
42
#define _wcsicmp wcscasecmp
43
#define wcsnicmp wcsncasecmp
45
#define ZeroMemory(POINTER, BYTES) memset(POINTER, 0, BYTES);
46
#define max(a,b) (((a) > (b)) ? (a) : (b))
47
#define min(a,b) (((a) < (b)) ? (a) : (b))
52
#define _stricmp strcasecmp
53
#define _strnicmp strncasecmp
55
#define _FPOSOFF(fp) ((long)(fp).__pos)
58
#ifndef _WAVEFORMATEX_
59
#define _WAVEFORMATEX_
61
typedef struct tWAVEFORMATEX
63
WORD wFormatTag; /* format type */
64
WORD nChannels; /* number of channels (i.e. mono, stereo...) */
65
DWORD nSamplesPerSec; /* sample rate */
66
DWORD nAvgBytesPerSec; /* for buffer estimation */
67
WORD nBlockAlign; /* block size of data */
68
WORD wBitsPerSample; /* number of bits per sample of mono data */
69
WORD cbSize; /* the count in bytes of the size of */
70
/* extra information (after cbSize) */
71
} WAVEFORMATEX, *PWAVEFORMATEX, NEAR *NPWAVEFORMATEX, FAR *LPWAVEFORMATEX;
72
typedef const WAVEFORMATEX FAR *LPCWAVEFORMATEX;
74
#endif // #ifndef _WAVEFORMATEX_
76
#endif // #ifndef APE_NOWINDOWS_H
78
#endif // #ifndef _WIN32