[cairo-commit] src/cairo.h

Chris Wilson ickle at kemper.freedesktop.org
Wed Oct 8 07:30:21 PDT 2008

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

New commits:
commit 6487a147a2129f588aae900b048b2a801ef95ec0
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Wed Oct 8 15:26:03 2008 +0100

    [cairo.h] Be defensive when checking for _MSC_VER
    Since cairo.h is a public header file, we need to be careful so that it
    can be compiled by random compilers and even users specifying "-Werror
    -Wundef" (mentioning no names, Company). So replace the bare (and legal)
      #if _MSC_VER
      #if defined (_MSC_VER)
    just in case.

diff --git a/src/cairo.h b/src/cairo.h
index 55ea2d6..cf4bc05 100644
--- a/src/cairo.h
+++ b/src/cairo.h
@@ -51,7 +51,7 @@
 #ifndef cairo_public
+# if defined (_MSC_VER) && ! defined (CAIRO_WIN32_STATIC_BUILD)
 #  define cairo_public __declspec(dllimport)
 # else
 #  define cairo_public

More information about the cairo-commit mailing list