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

View File

@ -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

View File

@ -58,7 +58,8 @@
#ifdef __cplusplus
#define EXTERN extern "C"
extern "C" {
extern "C"
{
#else
#define EXTERN extern
#endif