summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author[email protected] <[email protected]>2011-05-01 12:26:33 +0000
committer[email protected] <[email protected]>2011-05-01 12:26:33 +0000
commita5073f27b0c8d1fc21062f7adbf83ceaa7388bd4 (patch)
treed360b7b41b198d89c028da05ed92cedc1d8fd441
parent2a8b1db1700aa2d62176c321265d92a6ca64a3d0 (diff)
add IAR compiler support in POSIX Threads.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1393 bbd45198-f89e-11dd-88c7-29a3b14d5316
-rw-r--r--components/pthreads/posix_types.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/pthreads/posix_types.h b/components/pthreads/posix_types.h
index fb068c994d..fd913aee2e 100644
--- a/components/pthreads/posix_types.h
+++ b/components/pthreads/posix_types.h
@@ -16,7 +16,8 @@
#else
-#ifdef __CC_ARM /* ARM Compiler */
+/* ARM compiler and IAR compiler */
+#if defined(__CC_ARM) || defined(__IAR_SYSTEMS_ICC__)
#include <stddef.h>
#include <stdarg.h>
#include <string.h>
@@ -186,7 +187,6 @@ typedef rt_uint16_t mode_t;
#define O_DIRECTORY 0200000
#endif
-#elif defined (__IAR_SYSTEMS_ICC__) /* IAR Compiler */
#elif defined (__GNUC__) /* GNU GCC Compiler, with minilibc */
#endif