summaryrefslogtreecommitdiff
path: root/include/fitz/base_sysdep.h
diff options
context:
space:
mode:
authorKrzysztof Kowalczyk <kkowalczyk@gmail.com>2008-03-31 07:54:02 +0200
committerKrzysztof Kowalczyk <kkowalczyk@gmail.com>2008-03-31 07:54:02 +0200
commitbc8802f8399faf20c1a62815e3a29e21c680855f (patch)
tree466290009d950d5d8cf36395fb9cfe419516706c /include/fitz/base_sysdep.h
parentbf4bd68a70bfe02c010082dcd603a137c3d6f1fb (diff)
downloadmupdf-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.h7
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