From 7eb9ea679dd064cab747cded17a0bc84b66fc275 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Mon, 26 Oct 2009 05:27:58 +0000 Subject: =?UTF-8?q?2009-10-26=09Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * support/include/tmacros.h: Include . Move extern "C". Let put_name use "int" instead "uint32_t" (Arg to putchar must be int). --- testsuites/support/include/tmacros.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'testsuites/support/include/tmacros.h') 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 #include /* includes */ #include @@ -29,6 +26,11 @@ extern "C" { #include #include +#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; \ -- cgit v1.2.3