]> pd.if.org Git - pdclib/blobdiff - platform/win32/internals/_PDCLIB_threadconfig.h
Sweeping cleanups. Sorry for the massive commit; I got sidetracked once too often.
[pdclib] / platform / win32 / internals / _PDCLIB_threadconfig.h
index 0f35d294f94e54632cb6235785fa54b81ea75a6f..cca59e1399760d40df4d2f5875950797da8c72d2 100644 (file)
@@ -3,7 +3,9 @@
 #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
@@ -32,5 +34,7 @@ struct _PDCLIB_tss {
     unsigned int _Key;\r
 };\r
 \r
-_PDCLIB_END_EXTERN_C\r
+#ifdef __cplusplus
+}
+#endif\r
 #endif\r