More compilation.
Moved windows typedefs to a separate file. Included public domain md5 routines (from dpkg).
This commit is contained in:
parent
6d5a3cec55
commit
f759e35cd8
15 changed files with 414 additions and 93 deletions
62
src/fixer.h
Normal file
62
src/fixer.h
Normal file
|
@ -0,0 +1,62 @@
|
|||
#ifndef __FIXER_H__
|
||||
#define __FIXER_H__
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <inttypes.h> // 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
|
Loading…
Add table
Add a link
Reference in a new issue