]> pd.if.org Git - pdclib/blobdiff - opt/nothread/_PDCLIB_threadconfig.h
dos2unix
[pdclib] / opt / nothread / _PDCLIB_threadconfig.h
index 3380b5226c989f4b36e8ea0467605a16904a0bc1..fcc3d399077efd01eb510b02684dff43e36614fa 100644 (file)
@@ -1,24 +1,28 @@
-#ifndef _PDCLIB_THREADCONFIG_H\r
-#define _PDCLIB_THREADCONFIG_H\r
-#include <_PDCLIB_aux.h>\r
-#include <_PDCLIB_config.h>\r
-\r
-_PDCLIB_BEGIN_EXTERN_C\r
-#define _PDCLIB_ONCE_FLAG_INIT 0\r
-#define _PDCLIB_ONCE_FLAG_IS_DONE(_f) (*(_f) == 1)\r
-typedef char _PDCLIB_once_flag;\r
-\r
-void _PDCLIB_call_once(_PDCLIB_once_flag *flag, void (*func)(void));\r
-\r
-#define _PDCLIB_THRD_HAVE_MISC\r
-#define _PDCLIB_CND_T char\r
-#define _PDCLIB_MTX_T char\r
-#define _PDCLIB_TSS_T struct _PDCLIB_tss\r
-\r
-struct _PDCLIB_tss {\r
-       struct _PDCLIB_tss *self;\r
-       void *value;\r
-};\r
-\r
-_PDCLIB_END_EXTERN_C\r
-#endif\r
+#ifndef _PDCLIB_THREADCONFIG_H
+#define _PDCLIB_THREADCONFIG_H
+#include "_PDCLIB_aux.h"
+#include "_PDCLIB_config.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+#define _PDCLIB_ONCE_FLAG_INIT 0
+#define _PDCLIB_ONCE_FLAG_IS_DONE(_f) (*(_f) == 1)
+typedef char _PDCLIB_once_flag;
+
+void _PDCLIB_call_once(_PDCLIB_once_flag *flag, void (*func)(void));
+
+#define _PDCLIB_THRD_HAVE_MISC
+#define _PDCLIB_CND_T char
+#define _PDCLIB_MTX_T char
+#define _PDCLIB_TSS_T struct _PDCLIB_tss
+
+struct _PDCLIB_tss {
+       struct _PDCLIB_tss *self;
+       void *value;
+};
+
+#ifdef __cplusplus
+}
+#endif
+#endif