diff options
Diffstat (limited to 'php/src/IcePHP/Init.cpp')
-rw-r--r-- | php/src/IcePHP/Init.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/php/src/IcePHP/Init.cpp b/php/src/IcePHP/Init.cpp index 833497a71b8..71f8eb8be42 100644 --- a/php/src/IcePHP/Init.cpp +++ b/php/src/IcePHP/Init.cpp @@ -103,7 +103,9 @@ ZEND_END_ARG_INFO() // // 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 // // Entries for all global functions. @@ -123,7 +125,9 @@ zend_function_entry ice_functions[] = // // enable warning again // -#pragma GCC diagnostic error "-Wwrite-strings" +#if defined(__GNUC__) +# pragma GCC diagnostic error "-Wwrite-strings" +#endif // // The ice_module_entry declaration below generates lots of warnings: @@ -132,7 +136,9 @@ zend_function_entry ice_functions[] = // // We disable them with a pragma. // -#pragma GCC diagnostic ignored "-Wwrite-strings" +#if defined(__GNUC__) +# pragma GCC diagnostic ignored "-Wwrite-strings" +#endif zend_module_entry ice_module_entry = { |