[cairo-commit] src/cairo-compiler-private.h

Vladimir Vukicevic vladimir at kemper.freedesktop.org
Mon Mar 3 21:16:18 PST 2008


 src/cairo-compiler-private.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 4a1f65b63e891436f5896b1ccb0af26dd4b9cfe1
Author: Vladimir Vukicevic <vladimir at pobox.com>
Date:   Mon Mar 3 21:16:12 2008 -0800

    Fix msvc compilation issue in cairo-compiler-private.h
    
    __WIN32__ is not a standard define set by MSVC; we have to check for
    __WIN32__ (for mingw/gcc) and for _MSC_VER, for MSVC.

diff --git a/src/cairo-compiler-private.h b/src/cairo-compiler-private.h
index 9965949..06d3bfd 100644
--- a/src/cairo-compiler-private.h
+++ b/src/cairo-compiler-private.h
@@ -111,7 +111,7 @@ CAIRO_BEGIN_DECLS
 #define __attribute__(x)
 #endif
 
-#ifdef __WIN32__
+#if defined(__WIN32__) || defined(_MSC_VER)
 #define snprintf _snprintf
 #endif
 


More information about the cairo-commit mailing list