diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-12-16 23:23:46 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-12-16 23:23:46 +0000 |
commit | cef4fec60cb7f31f81f887fcfd729be41662abb1 (patch) | |
tree | 0d46ddbbeaa56d21bde1660d97c4e34c31539f11 /nuttx/include/sys/types.h | |
parent | 471b50c5f8f0f49ce8abfb8f0085d05cfe32edaa (diff) | |
download | px4-nuttx-cef4fec60cb7f31f81f887fcfd729be41662abb1.tar.gz px4-nuttx-cef4fec60cb7f31f81f887fcfd729be41662abb1.tar.bz2 px4-nuttx-cef4fec60cb7f31f81f887fcfd729be41662abb1.zip |
Clean-up from big switch to stdint/stdbool
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2362 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include/sys/types.h')
-rw-r--r-- | nuttx/include/sys/types.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/nuttx/include/sys/types.h b/nuttx/include/sys/types.h index 286cc3fe9..205beefff 100644 --- a/nuttx/include/sys/types.h +++ b/nuttx/include/sys/types.h @@ -43,16 +43,22 @@ #include <nuttx/config.h> #include <nuttx/compiler.h> -#include <stdint.h> +#ifndef __ASSEMBLY__ +# include <stdint.h> +#endif /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ -/* Alternative alues for type bool (for historic reasons) */ +/* Alternative values for type bool (for historic reasons) */ -#define TRUE 1 -#define FALSE 0 +#ifndef TRUE +# define TRUE 1 +#endif +#ifndef FALSE +# define FALSE 0 +#endif /* NULL is usually defined in stddef.h (which includes this file) */ |