diff options
author | Krzysztof Kowalczyk <kkowalczyk@gmail.com> | 2008-03-31 07:54:02 +0200 |
---|---|---|
committer | Krzysztof Kowalczyk <kkowalczyk@gmail.com> | 2008-03-31 07:54:02 +0200 |
commit | bc8802f8399faf20c1a62815e3a29e21c680855f (patch) | |
tree | 466290009d950d5d8cf36395fb9cfe419516706c /include/fitz/base_sysdep.h | |
parent | bf4bd68a70bfe02c010082dcd603a137c3d6f1fb (diff) | |
download | mupdf-bc8802f8399faf20c1a62815e3a29e21c680855f.tar.xz |
fixes for native windows build with Visual Studio
Diffstat (limited to 'include/fitz/base_sysdep.h')
-rw-r--r-- | include/fitz/base_sysdep.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/fitz/base_sysdep.h b/include/fitz/base_sysdep.h index 4e8b1115..1610cd20 100644 --- a/include/fitz/base_sysdep.h +++ b/include/fitz/base_sysdep.h @@ -19,8 +19,12 @@ #else # define FZ_FLEX 1 # define restrict +#ifdef _MSC_VER +# define inline __inline +#else # define inline __inline__ #endif +#endif #ifdef WIN32 # define vsnprintf _vsnprintf @@ -76,3 +80,6 @@ extern int opterr, optind, optopt; extern char *optarg; #endif +#ifdef NEED_GETTIMEOFDAY +extern int gettimeofday(struct timeval *tv, struct timezone *tz); +#endif |