build: Fix compilation on win32
authorAndrea Canciani <ranma42@gmail.com>
Wed, 20 Jun 2012 15:13:33 +0000 (17:13 +0200)
committerAndrea Canciani <ranma42@gmail.com>
Wed, 20 Jun 2012 15:13:33 +0000 (17:13 +0200)
When compiling using the win32 build system, config.h is not
available nor needed.

Fixes:

pixman-glyph.c(26) : fatal error C1083: Cannot open include file:
'config.h': No such file or directory

pixman/pixman-glyph.c

index 921eff1..cbc3637 100644 (file)
  *
  * Author: Soren Sandmann <sandmann@cs.au.dk>
  */
+
+#ifdef HAVE_CONFIG_H
 #include <config.h>
-#include <stdlib.h>
+#endif
 #include "pixman-private.h"
 
+#include <stdlib.h>
+
 typedef struct glyph_metrics_t glyph_metrics_t;
 typedef struct glyph_t glyph_t;