diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-10-26 05:27:58 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-10-26 05:27:58 +0000 |
commit | 7eb9ea679dd064cab747cded17a0bc84b66fc275 (patch) | |
tree | 5e925c635e75b2b944dea9252484f3758dbc8714 /testsuites/support/include/tmacros.h | |
parent | 2009-10-26 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-7eb9ea679dd064cab747cded17a0bc84b66fc275.tar.bz2 |
2009-10-26 Ralf Corsépius <ralf.corsepius@rtems.org>
* support/include/tmacros.h: Include <inttypes.h>.
Move extern "C".
Let put_name use "int" instead "uint32_t" (Arg to putchar must be int).
Diffstat (limited to 'testsuites/support/include/tmacros.h')
-rw-r--r-- | testsuites/support/include/tmacros.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/testsuites/support/include/tmacros.h b/testsuites/support/include/tmacros.h index 5623131550..b80c21b35c 100644 --- a/testsuites/support/include/tmacros.h +++ b/testsuites/support/include/tmacros.h @@ -16,10 +16,7 @@ #ifndef __TMACROS_h #define __TMACROS_h -#ifdef __cplusplus -extern "C" { -#endif - +#include <inttypes.h> #include <bsp.h> /* includes <rtems.h> */ #include <ctype.h> @@ -29,6 +26,11 @@ extern "C" { #include <assert.h> #include <rtems/error.h> +#ifdef __cplusplus +extern "C" { +#endif + + #define FOREVER 1 /* infinite loop */ #ifdef CONFIGURE_INIT @@ -209,7 +211,7 @@ extern "C" { #endif #define put_name( name, crlf ) \ -{ uint32_t c0, c1, c2, c3; \ +{ int c0, c1, c2, c3; \ c0 = (name >> 24) & 0xff; \ c1 = (name >> 16) & 0xff; \ c2 = (name >> 8) & 0xff; \ |