summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
authorRobert Sutton <rpsutton@syr.edu>2013-08-07 12:54:42 -0400
committerRobert Sutton <rpsutton@syr.edu>2013-08-07 12:54:42 -0400
commita102fa7cb0cce2e29e428794cc2e9d8f8d1eb03b (patch)
tree4653403f0c3d35589bac92dea593702c135c9065 /testing
parent5a8da17e61f59f189a8534f75d56c0e98f9caf39 (diff)
Add #undef before #define to fix redefinition warning
Diffstat (limited to 'testing')
-rw-r--r--testing/misc_tools.h2
1 files changed, 2 insertions, 0 deletions
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[]);
51 DEBUG_PRINT(__VA_ARGS__, ' '); \ 51 DEBUG_PRINT(__VA_ARGS__, ' '); \
52 } while (0) 52 } while (0)
53 53
54 #undef ERROR
54 #define ERROR(exit_status, ...) do { \ 55 #define ERROR(exit_status, ...) do { \
55 fprintf(stderr, "error in "); \ 56 fprintf(stderr, "error in "); \
56 DEBUG_PRINT(__VA_ARGS__, ' '); \ 57 DEBUG_PRINT(__VA_ARGS__, ' '); \
@@ -58,6 +59,7 @@ unsigned char * hex_string_to_bin(char hex_string[]);
58 } while (0) 59 } while (0)
59#else 60#else
60 #define WARNING(...) 61 #define WARNING(...)
62 #undef ERROR
61 #define ERROR(...) 63 #define ERROR(...)
62#endif // DEBUG 64#endif // DEBUG
63 65