Skip to content

Commit

Permalink
[cairo.h] Be defensive when checking for _MSC_VER
Browse files Browse the repository at this point in the history
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
with
  #if defined (_MSC_VER)
just in case.
  • Loading branch information
Chris Wilson committed Oct 8, 2008
1 parent 59141e5 commit 6487a14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cairo.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
#endif

#ifndef cairo_public
# if _MSC_VER && !CAIRO_WIN32_STATIC_BUILD
# if defined (_MSC_VER) && ! defined (CAIRO_WIN32_STATIC_BUILD)
# define cairo_public __declspec(dllimport)
# else
# define cairo_public
Expand Down

0 comments on commit 6487a14

Please sign in to comment.