diff options
author | Tor Andersson <tor@ghostscript.com> | 2004-10-05 11:05:26 +0200 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2004-10-05 11:05:26 +0200 |
commit | 7edeed5a4fae0199a65dc724c2c131d4d120bf28 (patch) | |
tree | c27e90705a7c083643913a82a4deb2d74b385e57 /include | |
parent | 98e44466052e654c6b34a685fe7dbc433632aecc (diff) | |
download | mupdf-7edeed5a4fae0199a65dc724c2c131d4d120bf28.tar.xz |
strip out c99-isms for msvc
Diffstat (limited to 'include')
-rw-r--r-- | include/fitz/base.h | 6 | ||||
-rw-r--r-- | include/fitz/geometry.h | 2 | ||||
-rw-r--r-- | include/fitz/sysdep.h | 6 |
3 files changed, 13 insertions, 1 deletions
diff --git a/include/fitz/base.h b/include/fitz/base.h index 36fe0aeb..c255efe9 100644 --- a/include/fitz/base.h +++ b/include/fitz/base.h @@ -35,8 +35,14 @@ struct fz_error_s #define fz_outofmem (&fz_koutofmem) extern fz_error fz_koutofmem; +#ifdef __WIN32__ +#define fz_throw fz_throwMS +fz_error *fz_throwMS(char *fmt, ...); +#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 + void fz_warn(char *fmt, ...); void fz_abort(fz_error *eo); void fz_freeerror(fz_error *eo); diff --git a/include/fitz/geometry.h b/include/fitz/geometry.h index 588aa562..29a6b522 100644 --- a/include/fitz/geometry.h +++ b/include/fitz/geometry.h @@ -36,7 +36,7 @@ struct fz_irect_s fz_ipoint max; }; -#define FZ_INFRECT (fz_rect){{1,1},{-1,-1}} +fz_rect fz_infiniterect(void); fz_matrix fz_concat(fz_matrix one, fz_matrix two); fz_matrix fz_identity(void); diff --git a/include/fitz/sysdep.h b/include/fitz/sysdep.h index bb78521f..39221272 100644 --- a/include/fitz/sysdep.h +++ b/include/fitz/sysdep.h @@ -31,6 +31,12 @@ typedef signed long long fz_s64; * Extras! Extras! Get them while they're hot! */ +#ifdef __WIN32__ +#define NEED_STRLCPY +#define NEED_STRSEP +#define NEED_GETOPT +#endif + #ifdef NEED_STRLCPY extern int strlcpy(char *dst, const char *src, int n); extern int strlcat(char *dst, const char *src, int n); |