Skip to content

Commit f8202b5

Browse files
committed
Remove superfluous HAVE_GD_BUNDLED checks
If we're compiling the bundled libgd, `HAVE_GD_BUNDLED` is set, so there is no need to check for this macro again.
1 parent 72b9105 commit f8202b5

File tree

3 files changed

+4
-17
lines changed

3 files changed

+4
-17
lines changed

ext/gd/libgd/gd_color_match.c

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
1-
#if HAVE_GD_BUNDLED
2-
# include "gd.h"
3-
# include "gdhelpers.h"
4-
#else
5-
# include <gd.h>
6-
# include "libgd/gdhelpers.h"
7-
#endif
1+
#include "gd.h"
2+
#include "gdhelpers.h"
83

94
#include "gd_intern.h"
105
#include "php.h"

ext/gd/libgd/gd_filter.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
#if HAVE_GD_BUNDLED
2-
# include "gd.h"
3-
#else
4-
# include <gd.h>
5-
#endif
1+
#include "gd.h"
62

73
#include "gd_intern.h"
84

ext/gd/libgd/gd_rotate.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
#if HAVE_GD_BUNDLED
2-
# include "gd.h"
3-
#else
4-
# include <gd.h>
5-
#endif
1+
#include "gd.h"
62

73
#include "gd_intern.h"
84
#include <math.h>

0 commit comments

Comments
 (0)