Fix broken build when HAVE_CONFIG_H is undefined, e.g. on Win32.
authoringmar@irsoft.de <ingmar@irsoft.de>
Sat, 11 May 2013 09:55:04 +0000 (11:55 +0200)
committerSøren Sandmann Pedersen <ssp@redhat.com>
Sat, 11 May 2013 20:09:39 +0000 (16:09 -0400)
Build fix for platforms without a generated config.h, for example Win32.

pixman/pixman-filter.c
pixman/pixman-vmx.c

index 26b39d5..5ff7b6e 100644 (file)
@@ -28,7 +28,9 @@
 #include <stdio.h>
 #include <math.h>
 #include <assert.h>
+#ifdef HAVE_CONFIG_H
 #include <config.h>
+#endif
 #include "pixman-private.h"
 
 typedef double (* kernel_func_t) (double x);
index 6868704..f629003 100644 (file)
@@ -25,7 +25,9 @@
  * Based on fbmmx.c by Owen Taylor, Søren Sandmann and Nicholas Miell
  */
 
+#ifdef HAVE_CONFIG_H
 #include <config.h>
+#endif
 #include "pixman-private.h"
 #include "pixman-combine32.h"
 #include <altivec.h>