Commits

Ondřej Surý committed f52b1dd

Fix config.h include before gd.h to get the HAVE_VISILIBITY symbol available

Comments (0)

Files changed (25)

+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include "gd.h"
 #include "gd_color.h"
 

src/gd_color_map.c

+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include <string.h>
 
 #include "gd.h"

src/gd_color_map.h

 #ifndef GD_COLOR_MAP_H
 #define GD_COLOR_MAP_H 1
 
-#include <gd.h>
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include "gd.h"
 
 #ifdef __cplusplus
 extern "C" {
  * granularity).
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include <stdlib.h>
 #include "gd.h"
 #include "gd_color.h"
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include "gd.h"
 
 #ifdef WIN32
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include <stdio.h>
 #include <math.h>
 #include <string.h>
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include <stdio.h>
 #include <math.h>
 #include <string.h>

src/gd_interpolation.c

  - Add scale support for a portion only of an image (equivalent of copyresized/resampled)
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif /* HAVE_CONFIG_H */
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <math.h>
 
-#include <gd.h>
+#include "gd.h"
 #include "gdhelpers.h"
 
 #ifdef _MSC_VER

src/gd_io_stream.h

 #ifndef _gd_io_stream_h
 #define _gd_io_stream_h
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include "gd.h"
 #include <iostream>
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif /* HAVE_CONFIG_H */
+
 #include "gd.h"
 #include <math.h>
 
  * (and make it thread safety by droping static and  global variables)
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif /* HAVE_CONFIG_H */
+
 #include <stdlib.h>
 #include <string.h>
 #include "gd.h"
-#if HAVE_GD_BUNDLED
-# include "gd.h"
-#else
-# include <gd.h>
-#endif
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif /* HAVE_CONFIG_H */
 
+#include "gd.h"
 #include "gd_intern.h"
 #include <math.h>
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif /* HAVE_CONFIG_H */
+
 #include <stdio.h>
 #include <stddef.h>
 #include <stdlib.h>
 #ifndef __TGA_H
 #define __TGA_H	1
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
 
 #include "gd.h"
 #include "gdhelpers.h"

src/gd_transform.c

+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif /* HAVE_CONFIG_H */
+
 #include "gd.h"
 
 BGD_DECLARE(void) gdImageFlipVertical(gdImagePtr im)
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif /* HAVE_CONFIG_H */
+
 #include <stdio.h>
 #include <math.h>
 #include <string.h>
 		"Libor Skarvada, libor@informatics.muni.cz"
 	 */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
 
 #include "gd.h"
 
 		"Libor Skarvada, libor@informatics.muni.cz"
 	 */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
 
 #include "gd.h"
 
 		No copyright info was found in the original bdf.
 	 */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
 
 #include "gd.h"
 
 		No copyright info was found in the original bdf.
 	 */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
 
 #include "gd.h"
 
 		"Libor Skarvada, libor@informatics.muni.cz"
 	 */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
 
 #include "gd.h"
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif /* HAVE_CONFIG_H */
+
 #include "gd.h"
 #include <math.h>
 
 #ifndef GDFX_H
 #define GDFX_H 1
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include "gd.h"
 
 	/* im MUST be square, but can have any size. Returns a new image
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif /* HAVE_CONFIG_H */
+
 #include <stdio.h>
 #include <stdlib.h>
 
  *
  * 6. AdjustColorspaceBack:
  */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include "gd.h"
 #ifdef HAVE_LIBVPX
 #include "webpimg.h"