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).
This commit is contained in:
Ralf Corsepius
2009-10-26 05:27:58 +00:00
parent f2ced5d99f
commit 7eb9ea679d
2 changed files with 70 additions and 62 deletions

View File

@@ -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; \