Avoid redifinition

This commit is contained in:
Oleksii Shevchuk 2017-01-07 08:09:50 +02:00
parent 90c0efaca1
commit 6ef4ebd431
1 changed files with 9 additions and 0 deletions

View File

@ -26,6 +26,15 @@ static inline int dfprint(FILE *stream, const char *fmt, ...) {
#define dprint(...) do {} while (0)
#define dfprint(...) do {} while (0)
#ifdef printf
#undef printf
#endif
#ifdef fprintf
#undef fprintf
#endif
#define printf(...) do {} while (0)
#define fprintf(...) do {} while (0)