--- a/hedgewars/pas2c.h Thu May 10 11:29:18 2012 +0400
+++ b/hedgewars/pas2c.h Thu May 10 13:16:31 2012 +0400
@@ -46,6 +46,7 @@
typedef char * PChar;
typedef LongInt * PLongInt;
typedef Integer * PInteger;
+typedef int * PtrInt;
#ifdef __GNUG__
#define NULL __null
@@ -91,3 +92,16 @@
void close(int f);
bool odd(int i);
+
+
+typedef int TThreadId;
+void ThreadSwitch();
+#define InterlockedIncrement(a) __InterlockedIncrement(&(a))
+#define InterlockedDecrement(a) __InterlockedDecrement(&(a))
+void __InterlockedIncrement(int * a);
+void __InterlockedDecrement(int * a);
+
+bool Assigned(void * a);
+
+int random(int max);
+int abs(int i);