X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;ds=sidebyside;f=include%2Fwimlib%2Ferror.h;h=a36f8028c0ffde1100d4e9366ce36c50c0a45f52;hb=629719b7d5cad7fc6f2eca7ca11cb99100ed8764;hp=8d02120bf36fb3b1db606738fd5c2b522441d68b;hpb=e176e9731e696562bab8de7b9bd34c019deef3e8;p=wimlib diff --git a/include/wimlib/error.h b/include/wimlib/error.h index 8d02120b..a36f8028 100644 --- a/include/wimlib/error.h +++ b/include/wimlib/error.h @@ -7,20 +7,8 @@ #include -#ifdef __WIN32__ -# define wimlib_fprintf fwprintf -# define wimlib_printf wprintf -#else /* __WIN32__ */ -extern int -wimlib_fprintf(FILE *fp, const tchar *format, ...) _format_attribute(printf, 2, 3); - -extern int -wimlib_printf(const tchar *format, ...) _format_attribute(printf, 1, 2); -#endif /* !__WIN32__ */ - - -static inline int -dummy_tprintf(const tchar *format, ...) _format_attribute(printf, 1, 2) +static inline int _format_attribute(printf, 1, 2) +dummy_tprintf(const tchar *format, ...) { return 0; } @@ -74,10 +62,4 @@ wimlib_debug(const tchar *file, int line, const char *func, # define DEBUG(format, ...) dummy_tprintf(T(format), ## __VA_ARGS__) #endif /* !ENABLE_DEBUG */ -#ifdef ENABLE_MORE_DEBUG -# define DEBUG2(format, ...) DEBUG(format, ## __VA_ARGS__) -#else -# define DEBUG2(format, ...) dummy_tprintf(T(format), ## __VA_ARGS__) -#endif /* !ENABLE_MORE_DEBUG */ - #endif /* _WIMLIB_ERROR_H */