summaryrefslogtreecommitdiffstats
path: root/cpukit/sapi/include/confdefs.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/sapi/include/confdefs.h')
-rw-r--r--cpukit/sapi/include/confdefs.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/cpukit/sapi/include/confdefs.h b/cpukit/sapi/include/confdefs.h
index 5afac3acf4..7e911035ca 100644
--- a/cpukit/sapi/include/confdefs.h
+++ b/cpukit/sapi/include/confdefs.h
@@ -2090,11 +2090,11 @@ rtems_fs_init_functions_t rtems_fs_init_helper =
* user extensions.
*/
#define CONFIGURE_MEMORY_FOR_STATIC_EXTENSIONS \
- ((CONFIGURE_NEWLIB_EXTENSION * \
- _Configure_From_workspace( sizeof(User_extensions_Control))) + \
- (CONFIGURE_STACK_CHECKER_EXTENSION * \
- _Configure_From_workspace( sizeof(User_extensions_Control))) \
- )
+ (CONFIGURE_NUMBER_OF_INITIAL_EXTENSIONS == 0 ? 0 : \
+ _Configure_From_workspace( \
+ CONFIGURE_NUMBER_OF_INITIAL_EXTENSIONS \
+ * sizeof(User_extensions_Switch_control) \
+ ))
/**
* This macro provides a summation of the memory required by the