summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2005-10-09 12:06:27 +0000
committerPierre Joye <pajoye@php.net>2005-10-09 12:06:27 +0000
commit5dd9ad8f53ea9f41232ed68d9f3bde1fafd972e4 (patch)
tree0485bb3e41481e397f456ced583a9ca9b66e4d2f
parent5ef3e0c57b82c9ef6f4b815259fb23215c2f0532 (diff)
downloadphp-git-5dd9ad8f53ea9f41232ed68d9f3bde1fafd972e4.tar.gz
-fix build as shared or separate from main build (bfrance)
-rw-r--r--ext/gd/libgd/gd.h4
-rw-r--r--ext/gd/libgd/gdtables.c4
-rw-r--r--ext/gd/libgd/wbmp.h4
3 files changed, 12 insertions, 0 deletions
diff --git a/ext/gd/libgd/gd.h b/ext/gd/libgd/gd.h
index 7cd6785c6c..19b69c1c54 100644
--- a/ext/gd/libgd/gd.h
+++ b/ext/gd/libgd/gd.h
@@ -5,6 +5,10 @@
extern "C" {
#endif
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php_compat.h"
#ifndef WIN32
diff --git a/ext/gd/libgd/gdtables.c b/ext/gd/libgd/gdtables.c
index 46f94eaea2..1e81f3e9ee 100644
--- a/ext/gd/libgd/gdtables.c
+++ b/ext/gd/libgd/gdtables.c
@@ -1,4 +1,8 @@
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php_compat.h"
int gdCosT[] =
diff --git a/ext/gd/libgd/wbmp.h b/ext/gd/libgd/wbmp.h
index 4c239d83cf..89b64c7d1c 100644
--- a/ext/gd/libgd/wbmp.h
+++ b/ext/gd/libgd/wbmp.h
@@ -12,6 +12,10 @@
#ifndef __WBMP_H
#define __WBMP_H 1
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "php_compat.h"
/* WBMP struct