com php-src: fix clang compat: ext/bcmath/libbcmath/src/bcmath.h
| From: | Anatol Belski | Date: | Sat, 27 Aug 2016 20:25:02 +0000 |
| Subject: | com php-src: fix clang compat: ext/bcmath/libbcmath/src/bcmath.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-94082@lists.php.net to get a copy of this message | ||
Commit: 8a8a4419722f7cfe6f897d868cbbfd1e85273f66
Author: Anatol Belski <ab@php.net> Sat, 27 Aug 2016 22:25:02 +0200
Parents: d58202853d70e32b5836ac327a44df06adeb57e3
Branches: PHP-7.1 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=8a8a4419722f7cfe6f897d868cbbfd1e85273f66
Log:
fix clang compat
Changed paths:
M ext/bcmath/libbcmath/src/bcmath.h
Diff:
diff --git a/ext/bcmath/libbcmath/src/bcmath.h b/ext/bcmath/libbcmath/src/bcmath.h
index 513725f..28d275d 100644
--- a/ext/bcmath/libbcmath/src/bcmath.h
+++ b/ext/bcmath/libbcmath/src/bcmath.h
@@ -92,7 +92,7 @@ typedef struct bc_struct
/* Define the _PROTOTYPE macro if it is needed. */
#ifndef _PROTOTYPE
-#ifdef __STDC__
+#if defined(__STDC__) || defined(PHP_WIN32) && defined(__clang__)
#define _PROTOTYPE(func, args) func args
#else
#define _PROTOTYPE(func, args) func()