]> pd.if.org Git - pdclib/blobdiff - opt/nothread/_PDCLIB_threadconfig.h
Sweeping cleanups. Sorry for the massive commit; I got sidetracked once too often.
[pdclib] / opt / nothread / _PDCLIB_threadconfig.h
index 3380b5226c989f4b36e8ea0467605a16904a0bc1..516cc360e4eef39725ce3261c72645de6ee3bd80 100644 (file)
@@ -3,7 +3,9 @@
 #include <_PDCLIB_aux.h>\r
 #include <_PDCLIB_config.h>\r
 \r
-_PDCLIB_BEGIN_EXTERN_C\r
+#ifdef __cplusplus
+extern "C" {
+#endif\r
 #define _PDCLIB_ONCE_FLAG_INIT 0\r
 #define _PDCLIB_ONCE_FLAG_IS_DONE(_f) (*(_f) == 1)\r
 typedef char _PDCLIB_once_flag;\r
@@ -20,5 +22,7 @@ struct _PDCLIB_tss {
        void *value;\r
 };\r
 \r
-_PDCLIB_END_EXTERN_C\r
+#ifdef __cplusplus
+}
+#endif\r
 #endif\r