summaryrefslogtreecommitdiff
path: root/include/fitz/base.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/fitz/base.h')
-rw-r--r--include/fitz/base.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/fitz/base.h b/include/fitz/base.h
index 26a23be5..06a644b3 100644
--- a/include/fitz/base.h
+++ b/include/fitz/base.h
@@ -36,12 +36,11 @@ struct fz_error_s
extern fz_error fz_koutofmem;
#ifdef WIN32
-#define fz_throw fz_throwMS
-fz_error *fz_throwMS(char *fmt, ...);
+#define fz_throw(...) fz_throw0(__FUNCTION__, __FILE__, __LINE__, __VA_ARGS__)
#else
#define fz_throw(fmt, ...) fz_throw0(__func__, __FILE__, __LINE__, fmt, ## __VA_ARGS__)
-fz_error *fz_throw0(const char *func, const char *file, int line, char *fmt, ...);
#endif
+fz_error *fz_throw0(const char *func, const char *file, int line, char *fmt, ...);
void fz_warn(char *fmt, ...);
void fz_abort(fz_error *eo);