aboutsummaryrefslogtreecommitdiff
path: root/system/include/libc
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-09-21 18:16:58 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-09-21 18:16:58 -0700
commit1451f83b6206f751243c30950320b22bbbf823a4 (patch)
tree5b0c17880b32e22c1325f404eab675588971b891 /system/include/libc
parent0ca4dbb0f592a2a9db7c62fea450119407810605 (diff)
move pthreads defines earlier
Diffstat (limited to 'system/include/libc')
-rw-r--r--system/include/libc/pthread.h6
-rw-r--r--system/include/libc/sys/types.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/system/include/libc/pthread.h b/system/include/libc/pthread.h
index f99acbd6..ae9f2c88 100644
--- a/system/include/libc/pthread.h
+++ b/system/include/libc/pthread.h
@@ -27,12 +27,6 @@ extern "C" {
#include <unistd.h>
-#if EMSCRIPTEN
- #define _POSIX_THREADS
- #define _UNIX98_THREAD_MUTEX_ATTRIBUTES
- #define _POSIX_READER_WRITER_LOCKS
-#endif
-
#if defined(_POSIX_THREADS)
#include <sys/types.h>
diff --git a/system/include/libc/sys/types.h b/system/include/libc/sys/types.h
index 72ccd3a2..4bf41a34 100644
--- a/system/include/libc/sys/types.h
+++ b/system/include/libc/sys/types.h
@@ -24,6 +24,12 @@
#include <machine/_types.h>
+#if EMSCRIPTEN
+ #define _POSIX_THREADS
+ #define _UNIX98_THREAD_MUTEX_ATTRIBUTES
+ #define _POSIX_READER_WRITER_LOCKS
+#endif
+
#if defined(__rtems__) || defined(__XMK__) || defined(EMSCRIPTEN)
/*
* The following section is RTEMS specific and is needed to more