]> granicus.if.org Git - php/commitdiff
Oops again.
authorAndrei Zmievski <andrei@php.net>
Thu, 4 May 2006 21:29:21 +0000 (21:29 +0000)
committerAndrei Zmievski <andrei@php.net>
Thu, 4 May 2006 21:29:21 +0000 (21:29 +0000)
Zend/zend.h

index ebd5f6a1166d34782e971dcfebfba040fb04d777..6046f614a25b780fa30c2cb009c92989d994d97f 100644 (file)
@@ -246,6 +246,11 @@ typedef union _zstr {
        void  *v;
 } zstr;
 
+#ifdef __GNUC__
+#      define ZSTR(x)    ((zstr)(x))
+#      define NULL_ZSTR  ZSTR((void*)NULL)
+#      define EMPTY_ZSTR ZSTR("\0\0")
+#else
 extern ZEND_API zstr null_zstr;
 extern ZEND_API zstr empty_zstr;
 
@@ -258,6 +263,7 @@ static inline zstr _to_zstr(void *v) {
 #      define ZSTR(x)    _to_zstr(x)
 #      define NULL_ZSTR  null_zstr
 #      define EMPTY_ZSTR empty_zstr
+#endif
 
 #define EMPTY_STR ((UChar*)"\0\0")