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, 4 insertions, 1 deletions
diff --git a/include/fitz/base.h b/include/fitz/base.h
index d1c5343a..4741f297 100644
--- a/include/fitz/base.h
+++ b/include/fitz/base.h
@@ -37,10 +37,13 @@ extern fz_error fz_koutofmem;
#ifdef WIN32
#define fz_throw(...) fz_throw0(__FUNCTION__, __FILE__, __LINE__, __VA_ARGS__)
+#elif _ISOC99_SOURCE
+#define fz_throw(...) fz_throw0(__func__, __FILE__, __LINE__, __VA_ARGS__)
#else
-#define fz_throw(fmt, ...) fz_throw0(__func__, __FILE__, __LINE__, fmt, ## __VA_ARGS__)
+#define fz_throw fz_throw1
#endif
fz_error *fz_throw0(const char *func, const char *file, int line, char *fmt, ...);
+fz_error *fz_throw1(char *fmt, ...);
void fz_warn(char *fmt, ...);
void fz_abort(fz_error *eo);