Protect the G_DISABLE_CAST_CHECKS define

When compiling with cast checks already disabled there's no need to
redefine this symbol.
This commit is contained in:
Emmanuele Bassi 2007-08-07 14:21:10 +00:00
parent fffdeb64c7
commit 0176d1c8a8

View File

@ -24,7 +24,11 @@
#define PANGOCLUTTER_H__ #define PANGOCLUTTER_H__
#define PANGO_ENABLE_BACKEND #define PANGO_ENABLE_BACKEND
/* we always want to disable cast checks */
#ifndef G_DISABLE_CAST_CHECKS
#define G_DISABLE_CAST_CHECKS #define G_DISABLE_CAST_CHECKS
#endif
#include <glib-object.h> #include <glib-object.h>
#include <pango/pango.h> #include <pango/pango.h>