summaryrefslogtreecommitdiff
path: root/php/src/IcePHP/Endpoint.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'php/src/IcePHP/Endpoint.cpp')
-rw-r--r--php/src/IcePHP/Endpoint.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/php/src/IcePHP/Endpoint.cpp b/php/src/IcePHP/Endpoint.cpp
index 86cf00bf59d..d718610c94d 100644
--- a/php/src/IcePHP/Endpoint.cpp
+++ b/php/src/IcePHP/Endpoint.cpp
@@ -226,7 +226,9 @@ static zend_function_entry _interfaceMethods[] =
//
// 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 Endpoint.
@@ -255,7 +257,9 @@ static zend_function_entry _endpointInfoMethods[] =
//
// enable warning again
//
-#pragma GCC diagnostic error "-Wwrite-strings"
+#if defined(__GNUC__)
+# pragma GCC diagnostic error "-Wwrite-strings"
+#endif
bool
IcePHP::endpointInit(TSRMLS_D)