]> pd.if.org Git - pdclib/blobdiff - opt/pthreads/_PDCLIB_threadconfig.h
PDCLib includes with quotes, not <>.
[pdclib] / opt / pthreads / _PDCLIB_threadconfig.h
index 75e6f3a69230cb25eb6bf5ab421962b4a99312c9..a94d8dbd98cf5d2e51342f3d28fa88a2b9e77cf2 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef _PDCLIB_THREADCONFIG_H
 #define _PDCLIB_THREADCONFIG_H
-#include <_PDCLIB_aux.h>
-#include <_PDCLIB_config.h>
+#include "_PDCLIB_aux.h"
+#include "_PDCLIB_config.h"
 
 #ifdef __APPLE__
 #include <_types.h>
@@ -16,8 +16,19 @@ typedef __darwin_pthread_once_t _PDCLIB_once_flag;
 #define _PDCLIB_ONCE_FLAG_INIT {_PTHREAD_ONCE_SIG_init, {0}}
 
 #else
-#error Need to interrogate the C library headers for your platform
+/* Just include pthread.h */
+#include <pthread.h>
+#define _PDCLIB_THR_T pthread_t
+#define _PDCLIB_CND_T pthread_cond_t
+#define _PDCLIB_MTX_T pthread_mutex_t
+#define _PDCLIB_TSS_DTOR_ITERATIONS 5
+#define _PDCLIB_TSS_T pthread_key_t
+typedef pthread_once_t _PDCLIB_once_flag;
+#define _PDCLIB_ONCE_FLAG_INIT PTHREAD_ONCE_INIT
+
 #endif
 
-_PDCLIB_END_EXTERN_C
+#ifdef __cplusplus
+}
+#endif
 #endif