diff options
author | Jody Goldberg <jody@gnome.org> | 2008-02-28 15:23:53 -0800 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2008-02-28 15:23:53 -0800 |
commit | 4c7784e91eb953b905f187dda2a76dc102d73d01 (patch) | |
tree | fecb8f4d369e023aebd67912188d06adcd5f0468 /src/cairo-compiler-private.h | |
parent | 3d9db511c6990481add24f14225e36ea4d3f62d5 (diff) | |
download | cairo-4c7784e91eb953b905f187dda2a76dc102d73d01.tar.gz |
Fix PDF ouput when cross-compiling with mingw
Need to use __WIN32__ instead of _MSC_VER to select _snprintf in
place of snprintf when cross compiling. Otherwise all all %ld
arguments get misprinted resulting in broken PDF output.
Diffstat (limited to 'src/cairo-compiler-private.h')
-rw-r--r-- | src/cairo-compiler-private.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cairo-compiler-private.h b/src/cairo-compiler-private.h index 1c6645e4a..99659495b 100644 --- a/src/cairo-compiler-private.h +++ b/src/cairo-compiler-private.h @@ -111,8 +111,11 @@ CAIRO_BEGIN_DECLS #define __attribute__(x) #endif -#ifdef _MSC_VER +#ifdef __WIN32__ #define snprintf _snprintf +#endif + +#ifdef _MSC_VER #undef inline #define inline __inline #endif |