]> pd.if.org Git - pdclib/blobdiff - platform/win32/internals/_PDCLIB_threadconfig.h
dos2unix
[pdclib] / platform / win32 / internals / _PDCLIB_threadconfig.h
index 5969a7b6c9bd69d4908e2a785ae4ca8967ecd4ac..097942de45589f2c1234a4d026ef851f42fe3e39 100644 (file)
@@ -1,40 +1,40 @@
-#ifndef _PDCLIB_THREADCONFIG_H\r
-#define _PDCLIB_THREADCONFIG_H\r
-#include "_PDCLIB_aux.h"\r
-#include "_PDCLIB_int.h"\r
-\r
+#ifndef _PDCLIB_THREADCONFIG_H
+#define _PDCLIB_THREADCONFIG_H
+#include "_PDCLIB_aux.h"
+#include "_PDCLIB_int.h"
+
 #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
-typedef struct {\r
-    long  _State;\r
-    void *_Handle;\r
-} _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 struct _PDCLIB_mtx \r
-\r
-struct _PDCLIB_mtx {\r
-    void                   * _WaitEvHandle;\r
-    volatile          long   _ThreadId; \r
-    volatile unsigned  int   _NestCount;\r
-};\r
-\r
-#define _PDCLIB_TSS_T struct _PDCLIB_tss *\r
-\r
-struct _PDCLIB_tss {\r
-    void    (*_Destructor)(void*);\r
-    struct _PDCLIB_tss * _Next;\r
-    unsigned int _Key;\r
-};\r
-\r
+#endif
+#define _PDCLIB_TSS_DTOR_ITERATIONS 3
+#define _PDCLIB_ONCE_FLAG_INIT { -1, 0 }
+#define _PDCLIB_ONCE_FLAG_IS_DONE( _f ) ((_f)->_State == 0)
+typedef struct {
+    long  _State;
+    void *_Handle;
+} _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 struct _PDCLIB_mtx 
+
+struct _PDCLIB_mtx {
+    void                   * _WaitEvHandle;
+    volatile          long   _ThreadId; 
+    volatile unsigned  int   _NestCount;
+};
+
+#define _PDCLIB_TSS_T struct _PDCLIB_tss *
+
+struct _PDCLIB_tss {
+    void    (*_Destructor)(void*);
+    struct _PDCLIB_tss * _Next;
+    unsigned int _Key;
+};
+
 #ifdef __cplusplus
 }
-#endif\r
-#endif\r
+#endif
+#endif