Commits

Ondřej Surý committed f52b1dd

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

  • Participants
  • Parent commits 0199503

Comments (0)

Files changed (25)

File src/gd_color.c

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

File src/gd_color_map.c

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

File 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" {

File src/gd_crop.c

  * granularity).
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include <stdlib.h>
 #include "gd.h"
 #include "gd_color.h"

File src/gd_filter.c

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

File src/gd_gif_in.c

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

File src/gd_gif_out.c

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

File 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

File 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>
 

File src/gd_matrix.c

+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif /* HAVE_CONFIG_H */
+
 #include "gd.h"
 #include <math.h>
 

File src/gd_nnquant.c

  * (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"

File src/gd_rotate.c

-#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>
 

File src/gd_tga.c

+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif /* HAVE_CONFIG_H */
+
 #include <stdio.h>
 #include <stddef.h>
 #include <stdlib.h>

File src/gd_tga.h

 #ifndef __TGA_H
 #define __TGA_H	1
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
 
 #include "gd.h"
 #include "gdhelpers.h"

File src/gd_transform.c

+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif /* HAVE_CONFIG_H */
+
 #include "gd.h"
 
 BGD_DECLARE(void) gdImageFlipVertical(gdImagePtr im)

File src/gd_webp.c

+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif /* HAVE_CONFIG_H */
+
 #include <stdio.h>
 #include <math.h>
 #include <string.h>

File src/gdfontg.h

 		"Libor Skarvada, libor@informatics.muni.cz"
 	 */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
 
 #include "gd.h"
 

File src/gdfontl.h

 		"Libor Skarvada, libor@informatics.muni.cz"
 	 */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
 
 #include "gd.h"
 

File src/gdfontmb.h

 		No copyright info was found in the original bdf.
 	 */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
 
 #include "gd.h"
 

File src/gdfonts.h

 		No copyright info was found in the original bdf.
 	 */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
 
 #include "gd.h"
 

File src/gdfontt.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

File src/giftogd2.c

+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif /* HAVE_CONFIG_H */
+
 #include <stdio.h>
 #include <stdlib.h>
 

File src/webpimg.c

  *
  * 6. AdjustColorspaceBack:
  */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include "gd.h"
 #ifdef HAVE_LIBVPX
 #include "webpimg.h"