Przeglądaj źródła

parser-inc: add synchapi.h and winnt.h headers

rdb 6 lat temu
rodzic
commit
7e0952e367
2 zmienionych plików z 26 dodań i 0 usunięć
  1. 10 0
      dtool/src/parser-inc/synchapi.h
  2. 16 0
      dtool/src/parser-inc/winnt.h

+ 10 - 0
dtool/src/parser-inc/synchapi.h

@@ -0,0 +1,10 @@
+#ifndef SYNCHAPI_H
+#define SYNCHAPI_H
+
+#include "winnt.h"
+
+#define SRWLOCK_INIT RTL_SRWLOCK_INIT
+
+typedef RTL_SRWLOCK SRWLOCK, *PSRWLOCK;
+
+#endif

+ 16 - 0
dtool/src/parser-inc/winnt.h

@@ -0,0 +1,16 @@
+#ifndef WINNT_H
+#define WINNT_H
+
+typedef void *PVOID;
+
+typedef struct _RTL_SRWLOCK {
+  PVOID Ptr;
+} RTL_SRWLOCK, *PRTL_SRWLOCK;
+
+#define RTL_SRWLOCK_INIT {0}
+
+typedef struct _RTL_CONDITION_VARIABLE {
+  PVOID Ptr;
+} RTL_CONDITION_VARIABLE, *PRTL_CONDITION_VARIABLE;
+
+#endif