mirror of
https://github.com/TokTok/c-toxcore
synced 2026-10-23 00:02:38 +00:00
Add #undef before #define to fix redefinition warning
This commit is contained in:
1 parent
5a8da17e61
commit
a102fa7cb0
1 file changed
+2
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user