include/sys/syscall.h: System definitions should depend on CONFIG_LIB_SYSCALL not CONFIG_NUTTX_KERNEL

This commit is contained in:
Gregory Nutt
2014-08-28 17:03:54 -06:00
parent fe35751ec2
commit beaa2e1c97
2 changed files with 3 additions and 4 deletions
+1 -3
View File
@@ -47,9 +47,7 @@
# include <stdint.h> # include <stdint.h>
#endif #endif
/* The content of this file is only meaningful for the case of a kernel build. */ #ifdef CONFIG_LIB_SYSCALL
#ifdef CONFIG_NUTTX_KERNEL
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Definitions
+2 -1
View File
@@ -58,7 +58,8 @@
#ifdef __cplusplus #ifdef __cplusplus
#define EXTERN extern "C" #define EXTERN extern "C"
extern "C" { extern "C"
{
#else #else
#define EXTERN extern #define EXTERN extern
#endif #endif