mirror of
https://github.com/apache/nuttx.git
synced 2026-05-13 10:38:40 +08:00
include/sys/syscall.h: System definitions should depend on CONFIG_LIB_SYSCALL not CONFIG_NUTTX_KERNEL
This commit is contained in:
@@ -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
|
||||
|
||||
+2
-1
@@ -58,7 +58,8 @@
|
||||
|
||||
#ifdef __cplusplus
|
||||
#define EXTERN extern "C"
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#else
|
||||
#define EXTERN extern
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user