From beaa2e1c97832fa4e1d91cd3938106d5befac6c2 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 28 Aug 2014 17:03:54 -0600 Subject: [PATCH] include/sys/syscall.h: System definitions should depend on CONFIG_LIB_SYSCALL not CONFIG_NUTTX_KERNEL --- include/sys/syscall.h | 4 +--- include/syscall.h | 3 ++- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/include/sys/syscall.h b/include/sys/syscall.h index e5386eb3b5f..0dd6216c1ff 100644 --- a/include/sys/syscall.h +++ b/include/sys/syscall.h @@ -47,9 +47,7 @@ # include #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/include/syscall.h b/include/syscall.h index ae888e9c2bc..9c54d3773ef 100644 --- a/include/syscall.h +++ b/include/syscall.h @@ -58,7 +58,8 @@ #ifdef __cplusplus #define EXTERN extern "C" -extern "C" { +extern "C" +{ #else #define EXTERN extern #endif