com php-src: fix detection of mbstate_t with clang: e xt/standard/config.m4
| From: | Michael Wallner | Date: | Sun, 08 Feb 2015 20:46:16 +0000 |
| Subject: | com php-src: fix detection of mbstate_t with clang: e xt/standard/config.m4 | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-84734@lists.php.net to get a copy of this message | ||
Commit: 3121116a93fabca0c1be839a2c0455b4b31b2b76
Author: Michael Wallner <mike@php.net> Sun, 8 Feb 2015 21:45:19 +0100
Parents: 898f42ec6a38ce8f57ec72b63ff2594aea69f022
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=3121116a93fabca0c1be839a2c0455b4b31b2b76
Log:
fix detection of mbstate_t with clang
AC_TRY_COMPILE expexts a function body
Changed paths:
M ext/standard/config.m4
Diff:
diff --git a/ext/standard/config.m4 b/ext/standard/config.m4
index e2ce61f..c502c54 100644
--- a/ext/standard/config.m4
+++ b/ext/standard/config.m4
@@ -577,7 +577,7 @@ AC_TRY_COMPILE([
# include <wchar.h>
#endif
],[
-int __tmp__() { mbstate_t a; }
+mbstate_t a;
],[
ac_cv_type_mbstate_t=yes
],[