]> wimlib.net Git - wimlib/blobdiff - src/util.h
Allow writing to empty files in mounted WIM
[wimlib] / src / util.h
index 640cdef8ca86a9497812ebc397b614496a1af3ce..5385477f0403e267dfd69c4e8e83e860173ff202 100644 (file)
@@ -28,6 +28,7 @@
 #include <stdbool.h>
 #include <stddef.h>
 #include <inttypes.h>
+#include <sys/types.h>
 #include "config.h"
 
 
@@ -50,9 +51,12 @@ typedef unsigned uint;
 #ifdef ENABLE_ERROR_MESSAGES
 extern bool __wimlib_print_errors;
 extern void wimlib_error(const char *format, ...);
+extern void wimlib_warning(const char *format, ...);
 #  define ERROR wimlib_error
+#  define WARNING wimlib_warning
 #else
 #  define ERROR(format, ...)
+#  define WARNING(format, ...)
 #endif /* ENABLE_ERROR_MESSAGES */
 
 #if defined(ENABLE_DEBUG) || defined(ENABLE_MORE_DEBUG)