X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=include%2Fwimlib%2Ferror.h;h=9657eda8ad457c631957dbecb1e860b7f8d91049;hb=e61f93d517a76c23a3bfc2fdbd32fa190fbbc286;hp=a36f8028c0ffde1100d4e9366ce36c50c0a45f52;hpb=4c532e2a9f1a40e1c1a6ed44a50025cfbfab6e4f;p=wimlib diff --git a/include/wimlib/error.h b/include/wimlib/error.h index a36f8028..9657eda8 100644 --- a/include/wimlib/error.h +++ b/include/wimlib/error.h @@ -34,8 +34,10 @@ wimlib_warning_with_errno(const tchar *format, ...) # define WARNING(format, ...) wimlib_warning(T(format), ## __VA_ARGS__) # define WARNING_WITH_ERRNO(format, ...) wimlib_warning_with_errno(T(format), ## __VA_ARGS__) extern bool wimlib_print_errors; +extern FILE *wimlib_error_file; #else /* ENABLE_ERROR_MESSAGES */ # define wimlib_print_errors 0 +# define wimlib_error_file NULL # define ERROR(format, ...) dummy_tprintf(T(format), ## __VA_ARGS__) # define ERROR_WITH_ERRNO(format, ...) dummy_tprintf(T(format), ## __VA_ARGS__) # define WARNING(format, ...) dummy_tprintf(T(format), ## __VA_ARGS__)