mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Add #undef before #define to fix redefinition warning
This commit is contained in:
parent
5a8da17e61
commit
a102fa7cb0
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user