summaryrefslogtreecommitdiff
path: root/nuttx/include
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-05-12 18:07:05 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-05-12 18:07:05 +0000
commitba570ed8d8fdc4e110a0f6df0f38b322f97b6b0f (patch)
tree62079f698248e7265c9d6f7cc59719e76a327326 /nuttx/include
parent9e52f60313290f0b6e17551e825094c117909690 (diff)
downloadpx4-nuttx-ba570ed8d8fdc4e110a0f6df0f38b322f97b6b0f.tar.gz
px4-nuttx-ba570ed8d8fdc4e110a0f6df0f38b322f97b6b0f.tar.bz2
px4-nuttx-ba570ed8d8fdc4e110a0f6df0f38b322f97b6b0f.zip
Modify standard header files to work with RGMP
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3596 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include')
-rwxr-xr-xnuttx/include/math.h7
-rwxr-xr-xnuttx/include/stdbool.h10
-rwxr-xr-xnuttx/include/stdint.h10
3 files changed, 21 insertions, 6 deletions
diff --git a/nuttx/include/math.h b/nuttx/include/math.h
index 1aa9ce37e..c14220146 100755
--- a/nuttx/include/math.h
+++ b/nuttx/include/math.h
@@ -40,6 +40,12 @@
* Included Files
****************************************************************************/
+#include <nuttx/config.h>
+
+#ifdef CONFIG_ARCH_MATH_H
+# include <arch/math.h>
+#else
+
/****************************************************************************
* Type Definitions
****************************************************************************/
@@ -60,4 +66,5 @@ extern "C" {
}
#endif
+#endif /* CONFIG_ARCH_MATH_H */
#endif /* __INCLUDE_MATH_H */
diff --git a/nuttx/include/stdbool.h b/nuttx/include/stdbool.h
index d1c06ffe1..ad73870e3 100755
--- a/nuttx/include/stdbool.h
+++ b/nuttx/include/stdbool.h
@@ -1,7 +1,7 @@
/****************************************************************************
* include/stdbool.h
*
- * Copyright (C) 2009 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2009, 2011 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Redistribution and use in source and binary forms, with or without
@@ -41,9 +41,12 @@
****************************************************************************/
#include <nuttx/config.h>
-#include <nuttx/compiler.h>
-#include <stdint.h>
+#ifdef CONFIG_ARCH_STDBOOL_H
+# include <arch/stdbool.h>
+#else
+# include <nuttx/compiler.h>
+# include <stdint.h>
/****************************************************************************
* Pre-processor Definitions
@@ -82,4 +85,5 @@
typedef uint8_t _Bool8;
+#endif /* CONFIG_ARCH_STDBOOL_H */
#endif /* __INCLUDE_STDBOOL_H */
diff --git a/nuttx/include/stdint.h b/nuttx/include/stdint.h
index d44b13639..9e814bce5 100755
--- a/nuttx/include/stdint.h
+++ b/nuttx/include/stdint.h
@@ -41,10 +41,13 @@
****************************************************************************/
#include <nuttx/config.h>
-#include <nuttx/compiler.h>
-#include <arch/types.h>
-#include <limits.h>
+#ifdef CONFIG_ARCH_STDBOOL_H
+# include <arch/stdbool.h>
+#else
+# include <nuttx/compiler.h>
+# include <arch/types.h>
+# include <limits.h>
/****************************************************************************
* Pre-processor Definitions
@@ -289,4 +292,5 @@ typedef _int32_t intmax_t;
typedef _uint32_t uintmax_t;
#endif
+#endif /* CONFIG_ARCH_STDBOOL_H */
#endif /* __INCLUDE_STDINT_H */