com php-src: prevent multiple include using standard macros: configure.ac
| From: | Remi Collet | Date: | Fri, 09 Jun 2017 07:29:30 +0000 |
| Subject: | com php-src: prevent multiple include using standard macros: configure.ac | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-98038@lists.php.net to get a copy of this message | ||
Commit: 8d8d7ed822a01664479aa8e01e3ea05a00c3d628
Author: Remi Collet <remi@php.net> Fri, 9 Jun 2017 09:29:30 +0200
Parents: 75cda24b823a17f38e2ecca227a8c41bda00970c
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=8d8d7ed822a01664479aa8e01e3ea05a00c3d628
Log:
prevent multiple include using standard macros
Changed paths:
M configure.ac
Diff:
diff --git a/configure.ac b/configure.ac
index 77e1bad..80fe2a7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -18,6 +18,9 @@ PHP_CANONICAL_HOST_TARGET
AC_CONFIG_HEADER(main/php_config.h)
AH_TOP([
+#ifndef PHP_CONFIG_H
+#define PHP_CONFIG_H
+
#if defined(__GNUC__) && __GNUC__ >= 4
# define ZEND_API __attribute__ ((visibility("default")))
# define ZEND_DLEXPORT __attribute__ ((visibility("default")))
@@ -98,6 +101,8 @@ int zend_sprintf(char *buffer, const char *format, ...);
#endif /* ifndef ZEND_ACCONFIG_H_NO_C_PROTOS */
#undef PTHREADS
+
+#endif /* PHP_CONFIG_H */
])
PHP_MAJOR_VERSION=7