From a102fa7cb0cce2e29e428794cc2e9d8f8d1eb03b Mon Sep 17 00:00:00 2001 From: Robert Sutton Date: Wed, 7 Aug 2013 12:54:42 -0400 Subject: Add #undef before #define to fix redefinition warning --- testing/misc_tools.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'testing/misc_tools.h') diff --git a/testing/misc_tools.h b/testing/misc_tools.h index eb09693e..1abdb809 100644 --- a/testing/misc_tools.h +++ b/testing/misc_tools.h @@ -51,6 +51,7 @@ unsigned char * hex_string_to_bin(char hex_string[]); DEBUG_PRINT(__VA_ARGS__, ' '); \ } while (0) + #undef ERROR #define ERROR(exit_status, ...) do { \ fprintf(stderr, "error in "); \ DEBUG_PRINT(__VA_ARGS__, ' '); \ @@ -58,6 +59,7 @@ unsigned char * hex_string_to_bin(char hex_string[]); } while (0) #else #define WARNING(...) + #undef ERROR #define ERROR(...) #endif // DEBUG -- cgit v1.2.3