summaryrefslogtreecommitdiff
path: root/php/src/IcePHP/Properties.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'php/src/IcePHP/Properties.cpp')
-rw-r--r--php/src/IcePHP/Properties.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/php/src/IcePHP/Properties.cpp b/php/src/IcePHP/Properties.cpp
index b3eeb358b97..639f59ca47d 100644
--- a/php/src/IcePHP/Properties.cpp
+++ b/php/src/IcePHP/Properties.cpp
@@ -590,7 +590,9 @@ ZEND_FUNCTION(Ice_createProperties)
//
// 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 Properties.
@@ -622,7 +624,9 @@ static zend_function_entry _classMethods[] =
//
// enable warning again
//
-#pragma GCC diagnostic error "-Wwrite-strings"
+#if defined(__GNUC__)
+# pragma GCC diagnostic error "-Wwrite-strings"
+#endif
bool
IcePHP::propertiesInit(TSRMLS_D)