diff options
Diffstat (limited to 'nuttx/include/stdbool.h')
-rwxr-xr-x | nuttx/include/stdbool.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/nuttx/include/stdbool.h b/nuttx/include/stdbool.h index d1c06ffe12..ad73870e3c 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 */ |