summaryrefslogtreecommitdiff
path: root/php/src/IcePHP/Proxy.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2013-02-14 13:24:14 -0330
committerDwayne Boone <dwayne@zeroc.com>2013-02-14 13:24:14 -0330
commit40043be69d84f9a82f77d32b0232e09a19fd88e6 (patch)
tree7b412089046b70c7f72f1b779d75f00e6e3cb52c /php/src/IcePHP/Proxy.cpp
parentICE-5238 install does not work with MinGW (diff)
downloadice-40043be69d84f9a82f77d32b0232e09a19fd88e6.tar.bz2
ice-40043be69d84f9a82f77d32b0232e09a19fd88e6.tar.xz
ice-40043be69d84f9a82f77d32b0232e09a19fd88e6.zip
ICE-5235 IcePHP does not compile on Windows
Diffstat (limited to 'php/src/IcePHP/Proxy.cpp')
-rw-r--r--php/src/IcePHP/Proxy.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/php/src/IcePHP/Proxy.cpp b/php/src/IcePHP/Proxy.cpp
index 8bb67b438de..69595ccd22d 100644
--- a/php/src/IcePHP/Proxy.cpp
+++ b/php/src/IcePHP/Proxy.cpp
@@ -1626,7 +1626,9 @@ handleCompare(zval* zobj1, zval* zobj2 TSRMLS_DC)
//
// Necessary to suppress warnings from zend_function_entry in php-5.2.
//
-#pragma GCC diagnostic ignored "-Wwrite-strings"
+#if defined(__GNUC__)
+# pragma GCC diagnostic ignored "-Wwrite-strings"
+#endif
//
// Predefined methods for ObjectPrx.
@@ -1688,7 +1690,9 @@ static zend_function_entry _proxyMethods[] =
//
// enable warning again
//
-#pragma GCC diagnostic error "-Wwrite-strings"
+#if defined(__GNUC__)
+# pragma GCC diagnostic error "-Wwrite-strings"
+#endif
bool
IcePHP::proxyInit(TSRMLS_D)