summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/src/rtemsbuildname.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/rtems/src/rtemsbuildname.c')
-rw-r--r--cpukit/rtems/src/rtemsbuildname.c33
1 files changed, 8 insertions, 25 deletions
diff --git a/cpukit/rtems/src/rtemsbuildname.c b/cpukit/rtems/src/rtemsbuildname.c
index 42c8c46fd3..300c3638f9 100644
--- a/cpukit/rtems/src/rtemsbuildname.c
+++ b/cpukit/rtems/src/rtemsbuildname.c
@@ -20,33 +20,16 @@
#include "config.h"
#endif
-#include <rtems/rtems/types.h>
+#include <rtems/rtems/object.h>
-/*
- * Undefine since this is normally a macro and we want a real body in
- * the library for other language bindings.
- */
-#undef rtems_build_name
+static rtems_name _RTEMS_Build_name( char c1, char c2, char c3, char c4 )
+{
+ return rtems_build_name( c1, c2, c3, c4 );
+}
-/*
- * Prototype it to avoid warnings
- */
-rtems_name rtems_build_name(
- char C1,
- char C2,
- char C3,
- char C4
-);
+#undef rtems_build_name
-/*
- * Now define a real body
- */
-rtems_name rtems_build_name(
- char C1,
- char C2,
- char C3,
- char C4
-)
+rtems_id rtems_build_name( char c1, char c2, char c3, char c4 )
{
- return _Objects_Build_name( C1, C2, C3, C4 );
+ return _RTEMS_Build_name( c1, c2, c3, c4 );
}