]> wimlib.net Git - wimlib/blobdiff - src/util.h
Use public domain SHA1 code
[wimlib] / src / util.h
index 640cdef8ca86a9497812ebc397b614496a1af3ce..40ef9a0a3b0f2b5322ba48604cfbc61a331d2ccd 100644 (file)
@@ -28,6 +28,7 @@
 #include <stdbool.h>
 #include <stddef.h>
 #include <inttypes.h>
+#include <sys/types.h>
 #include "config.h"
 
 
@@ -47,12 +48,18 @@ typedef unsigned uint;
 
 #define ZERO_ARRAY(array) memset(array, 0, sizeof(array))
 
+/* Used for buffering FILE IO in a few places */
+#define BUFFER_SIZE 4096
+
 #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)