]> pd.if.org Git - pdclib/blobdiff - platform/win32/internals/_PDCLIB_threadconfig.h
PDCLib includes with quotes, not <>.
[pdclib] / platform / win32 / internals / _PDCLIB_threadconfig.h
index d914ae04d646564db18632f49c62f6b201610a63..5969a7b6c9bd69d4908e2a785ae4ca8967ecd4ac 100644 (file)
@@ -1,9 +1,11 @@
 #ifndef _PDCLIB_THREADCONFIG_H\r
 #define _PDCLIB_THREADCONFIG_H\r
-#include <_PDCLIB_aux.h>\r
-#include <_PDCLIB_int.h>\r
+#include "_PDCLIB_aux.h"\r
+#include "_PDCLIB_int.h"\r
 \r
-_PDCLIB_BEGIN_EXTERN_C\r
+#ifdef __cplusplus
+extern "C" {
+#endif\r
 #define _PDCLIB_TSS_DTOR_ITERATIONS 3\r
 #define _PDCLIB_ONCE_FLAG_INIT { -1, 0 }\r
 #define _PDCLIB_ONCE_FLAG_IS_DONE( _f ) ((_f)->_State == 0)\r
@@ -19,10 +21,9 @@ void _PDCLIB_call_once(_PDCLIB_once_flag *flag, void (*func)(void));
 #define _PDCLIB_MTX_T struct _PDCLIB_mtx \r
 \r
 struct _PDCLIB_mtx {\r
-    void         * _WaitEvHandle;\r
-    volatile   signed long  _State;\r
-    volatile unsigned  int  _ThreadId;\r
-    volatile unsigned  int  _NestCount;\r
+    void                   * _WaitEvHandle;\r
+    volatile          long   _ThreadId; \r
+    volatile unsigned  int   _NestCount;\r
 };\r
 \r
 #define _PDCLIB_TSS_T struct _PDCLIB_tss *\r
@@ -33,5 +34,7 @@ struct _PDCLIB_tss {
     unsigned int _Key;\r
 };\r
 \r
-_PDCLIB_END_EXTERN_C\r
+#ifdef __cplusplus
+}
+#endif\r
 #endif\r