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/win95/platform.h | 62 ++++------------------------------------------------ 1 file changed, 4 insertions(+), 58 deletions(-) (limited to 'src/win95/platform.h') diff --git a/src/win95/platform.h b/src/win95/platform.h index 44c245d..06abf3b 100644 --- a/src/win95/platform.h +++ b/src/win95/platform.h @@ -1,10 +1,7 @@ #ifndef PLATFORM_INCLUDED #define PLATFORM_INCLUDED -#include -#include -#include -#include // int64_t +#include "fixer.h" #include "shape.h" // struct imageheader @@ -18,55 +15,15 @@ extern "C" { #endif -#define PACKED __attribute__((packed)) - //#include "fastfile.h" - #define platform_pc Yes #define Saturn No #define Hardware2dTextureClipping No -#ifndef min -#define min(a, b) (((a) < (b)) ? (a) : (b)) -#endif - -#ifndef max -#define max(a, b) (((a) > (b)) ? (a) : (b)) -#endif - -#define TRUE 1 -#define FALSE 0 - -#define stricmp strcasecmp -#define _stricmp strcasecmp - /* Types */ -/* windows junk */ -typedef int GUID; -typedef int DPID; -typedef int HINSTANCE; -typedef int WPARAM; -typedef int LPARAM; - -typedef int BOOL; - -typedef struct RECT -{ - int left; - int top; - int right; - int bottom; -} RECT; - -typedef RECT RECT_AVP; - -typedef int64_t __int64; - -/* Watcom C 64-bit values */ - typedef struct LONGLONGCH { unsigned int lo32; @@ -74,26 +31,15 @@ typedef struct LONGLONGCH { } LONGLONGCH; - -typedef int FILETIME; - -typedef struct SYSTEMTIME -{ -//#warning "SYSTEMTIME format is not correct" - int wHour; - int wMinute; - int wSecond; - int wYear; - int wMonth; - int wDay; -} SYSTEMTIME; - /* Sine and Cosine */ +extern int sine[]; +extern int cosine[]; + #define GetSin(a) sine[a] #define GetCos(a) cosine[a] -- cgit v1.3