summaryrefslogtreecommitdiff
path: root/include/fitz/base_runtime.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/fitz/base_runtime.h')
-rw-r--r--include/fitz/base_runtime.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/fitz/base_runtime.h b/include/fitz/base_runtime.h
index 0bb00292..fc7ad920 100644
--- a/include/fitz/base_runtime.h
+++ b/include/fitz/base_runtime.h
@@ -64,6 +64,10 @@ void fz_printerror(fz_error *eo);
void fz_droperror(fz_error *eo);
void fz_warn(char *fmt, ...) __printflike(1,2);
+#ifdef WIN32
+#define __func__ __FUNCTION__
+#endif
+
#define fz_throw(...) fz_throwimp(nil, __func__, __FILE__, __LINE__, __VA_ARGS__)
#define fz_rethrow(cause, ...) fz_throwimp(cause, __func__, __FILE__, __LINE__, __VA_ARGS__)
#define fz_okay ((fz_error*)0)