mirror of
https://github.com/apache/nuttx.git
synced 2026-06-01 07:45:16 +08:00
nuttx/semaphore: Move define CONFIG_SEM_PREALLOCHOLDERS to include/semaphore.h.
Move CONFIG_SEM_PREALLOCHOLDERS to include/semaphore.h to avoid undefined issues from occurring in other places as well. Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
This commit is contained in:
@@ -51,6 +51,10 @@
|
|||||||
|
|
||||||
#define SEM_FAILED NULL
|
#define SEM_FAILED NULL
|
||||||
|
|
||||||
|
#ifndef CONFIG_SEM_PREALLOCHOLDERS
|
||||||
|
# define CONFIG_SEM_PREALLOCHOLDERS 0
|
||||||
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Type Declarations
|
* Public Type Declarations
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|||||||
@@ -42,12 +42,6 @@
|
|||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* Configuration ************************************************************/
|
|
||||||
|
|
||||||
#ifndef CONFIG_SEM_PREALLOCHOLDERS
|
|
||||||
# define CONFIG_SEM_PREALLOCHOLDERS 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Private Type Declarations
|
* Private Type Declarations
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|||||||
Reference in New Issue
Block a user