diff --git a/include/semaphore.h b/include/semaphore.h index 284973836e..bfd96cab57 100644 --- a/include/semaphore.h +++ b/include/semaphore.h @@ -51,6 +51,10 @@ #define SEM_FAILED NULL +#ifndef CONFIG_SEM_PREALLOCHOLDERS +# define CONFIG_SEM_PREALLOCHOLDERS 0 +#endif + /**************************************************************************** * Public Type Declarations ****************************************************************************/ diff --git a/sched/semaphore/sem_holder.c b/sched/semaphore/sem_holder.c index 0c23f8aabf..1da9f3e2a9 100644 --- a/sched/semaphore/sem_holder.c +++ b/sched/semaphore/sem_holder.c @@ -42,12 +42,6 @@ * Pre-processor Definitions ****************************************************************************/ -/* Configuration ************************************************************/ - -#ifndef CONFIG_SEM_PREALLOCHOLDERS -# define CONFIG_SEM_PREALLOCHOLDERS 0 -#endif - /**************************************************************************** * Private Type Declarations ****************************************************************************/