From f759e35cd8399d8bffea4d59c5822db8f1002409 Mon Sep 17 00:00:00 2001 From: Steven Fuller Date: Sat, 28 Jul 2001 04:44:27 +0000 Subject: More compilation. Moved windows typedefs to a separate file. Included public domain md5 routines (from dpkg). --- src/fixer.h | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 src/fixer.h (limited to 'src/fixer.h') diff --git a/src/fixer.h b/src/fixer.h new file mode 100644 index 0000000..2414e70 --- /dev/null +++ b/src/fixer.h @@ -0,0 +1,62 @@ +#ifndef __FIXER_H__ +#define __FIXER_H__ + +#include +#include +#include +#include // int64_t + +#define PACKED __attribute__((packed)) + +#ifndef min +#define min(a, b) (((a) < (b)) ? (a) : (b)) +#endif + +#ifndef max +#define max(a, b) (((a) > (b)) ? (a) : (b)) +#endif + +#define __cdecl + +#define TRUE 1 +#define FALSE 0 + +#define stricmp strcasecmp +#define _stricmp strcasecmp + +/* windows junk */ +typedef int GUID; +typedef int DPID; +typedef int HINSTANCE; +typedef int WPARAM; +typedef int LPARAM; +typedef int HANDLE; + +typedef int BOOL; + +typedef struct RECT +{ + int left; + int top; + int right; + int bottom; +} RECT; + +typedef RECT RECT_AVP; + +typedef int64_t __int64; + +typedef int FILETIME; + +typedef struct SYSTEMTIME +{ +//#warning "TODO: SYSTEMTIME format is not correct" + int wHour; + int wMinute; + int wSecond; + int wYear; + int wMonth; + int wDay; +} SYSTEMTIME; + +#endif -- cgit v1.3