summaryrefslogtreecommitdiff
path: root/include/fitz/base.h
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2004-10-12 08:37:25 +0200
committerTor Andersson <tor@ghostscript.com>2004-10-12 08:37:25 +0200
commit4ee01bbc747ce85b5ccfeed3e934dfb76fb14482 (patch)
treecde2ab7ff286056127ca4d7929ece9dc0b0216ca /include/fitz/base.h
parent358811630686460d6b0a96021a1bcb4c3124fb03 (diff)
downloadmupdf-4ee01bbc747ce85b5ccfeed3e934dfb76fb14482.tar.xz
merged seokgyos win32 fixes
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);