diff options
Diffstat (limited to 'cpukit/rtems/src/rtemsobjectidapimaximum.c')
-rw-r--r-- | cpukit/rtems/src/rtemsobjectidapimaximum.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/cpukit/rtems/src/rtemsobjectidapimaximum.c b/cpukit/rtems/src/rtemsobjectidapimaximum.c index 3d624b0b5a..d432647bd3 100644 --- a/cpukit/rtems/src/rtemsobjectidapimaximum.c +++ b/cpukit/rtems/src/rtemsobjectidapimaximum.c @@ -20,15 +20,16 @@ #include "config.h" #endif -#include <rtems/score/objectimpl.h> +#include <rtems/rtems/object.h> -/* - * This is implemented as a macro. This body is provided to support - * bindings from non-C based languages. - */ -int rtems_object_id_api_maximum(void); +static int _RTEMS_Object_id_api_maximum( void ) +{ + return rtems_object_id_api_maximum(); +} + +#undef rtems_object_id_api_maximum -int rtems_object_id_api_maximum(void) +int rtems_object_id_api_maximum( void ) { - return OBJECTS_APIS_LAST; + return _RTEMS_Object_id_api_maximum(); } |