diff options
author | Mathieu Duponchelle <mathieu@centricular.com> | 2018-05-31 16:07:57 -0700 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2020-07-31 01:21:01 +0100 |
commit | a75f8df95761bf88b54c326c5312117ea5073010 (patch) | |
tree | 70bc7fd8e704b95870838ff07d0cfb34cf609a30 /test/cairo-test.h | |
parent | 91b5761acd8ddb70993de4c9338549caf617a960 (diff) | |
download | cairo-a75f8df95761bf88b54c326c5312117ea5073010.tar.gz |
Fix build on Windows with recent versions of MSVC
- vsnprintf and snprintf are available since vs2015
- define ISREG if not provided
- guard unistd.h include with HAVE_UNISTD_H
- isnan() is available after vs2010
Diffstat (limited to 'test/cairo-test.h')
-rw-r--r-- | test/cairo-test.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/cairo-test.h b/test/cairo-test.h index 767c1ddf5..6d423ba01 100644 --- a/test/cairo-test.h +++ b/test/cairo-test.h @@ -58,7 +58,9 @@ typedef unsigned __int64 uint64_t; #define _USE_MATH_DEFINES #include <float.h> +#if _MSC_VER <= 1600 #define isnan(x) _isnan(x) +#endif #endif |