Skip to content

Commit

Permalink
Oops again.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Zmievski committed May 4, 2006
1 parent 7009fb9 commit d72d277
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Zend/zend.h
Expand Up @@ -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;

Expand All @@ -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")

Expand Down

0 comments on commit d72d277

Please sign in to comment.