#ifndef _WINTYPES_H #define _WINTYPES_H typedef unsigned int UINT; typedef unsigned int DWORD; typedef unsigned char BYTE; typedef unsigned char BOOL; #ifndef FALSE #define FALSE (0!=0) #endif #ifndef TRUE #define TRUE (!FALSE) #endif #define perrorex(a...) { \ perror(a); \ exit(-1); \ } #define MIN(a,b) (((a) < (b)) ? (a) : (b)) #define MAX(a,b) (((a) > (b)) ? (a) : (b)) #endif