summaryrefslogtreecommitdiff
path: root/src/win95/platform.h
diff options
context:
space:
mode:
authorSteven Fuller <relnev@icculus.org>2001-07-28 04:44:27 +0000
committerPatryk Obara <dreamer.tan@gmail.com>2019-08-20 02:22:36 +0200
commitf759e35cd8399d8bffea4d59c5822db8f1002409 (patch)
treec0ab401aeb1fdd12bd934107f8a5a647c205ed2a /src/win95/platform.h
parent6d5a3cec554f6afc5f075722fba7e2aa464f5676 (diff)
More compilation.
Moved windows typedefs to a separate file. Included public domain md5 routines (from dpkg).
Diffstat (limited to 'src/win95/platform.h')
-rw-r--r--src/win95/platform.h62
1 files changed, 4 insertions, 58 deletions
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 <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdint.h> // 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]