diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-08-28 17:03:54 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-08-28 17:03:54 -0600 |
commit | 5c4ee799aa14136b58738da49a0287860ed101f1 (patch) | |
tree | 4322b85cea50580304d9e4404468a4324e64b261 | |
parent | 82598d7a1c4c04558ddca7c618e641f889b4176d (diff) | |
download | nuttx-5c4ee799aa14136b58738da49a0287860ed101f1.tar.gz nuttx-5c4ee799aa14136b58738da49a0287860ed101f1.tar.bz2 nuttx-5c4ee799aa14136b58738da49a0287860ed101f1.zip |
include/sys/syscall.h: System definitions should depend on CONFIG_LIB_SYSCALL not CONFIG_NUTTX_KERNEL
-rw-r--r-- | nuttx/include/sys/syscall.h | 4 | ||||
-rw-r--r-- | nuttx/include/syscall.h | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/nuttx/include/sys/syscall.h b/nuttx/include/sys/syscall.h index e5386eb3b..0dd6216c1 100644 --- a/nuttx/include/sys/syscall.h +++ b/nuttx/include/sys/syscall.h @@ -47,9 +47,7 @@ # include <stdint.h> #endif -/* The content of this file is only meaningful for the case of a kernel build. */ - -#ifdef CONFIG_NUTTX_KERNEL +#ifdef CONFIG_LIB_SYSCALL /**************************************************************************** * Pre-processor Definitions diff --git a/nuttx/include/syscall.h b/nuttx/include/syscall.h index ae888e9c2..9c54d3773 100644 --- a/nuttx/include/syscall.h +++ b/nuttx/include/syscall.h @@ -58,7 +58,8 @@ #ifdef __cplusplus #define EXTERN extern "C" -extern "C" { +extern "C" +{ #else #define EXTERN extern #endif |