Skip to content

Commit

Permalink
oops, define CLEAR_ERRSV after #include.
Browse files Browse the repository at this point in the history
  • Loading branch information
spiritloose committed Oct 17, 2009
1 parent 340720a commit fae83c4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mod_psgi.c
Expand Up @@ -31,10 +31,6 @@
#include "apr_strings.h"
#include "apr_hash.h"

#ifndef CLEAR_ERRSV /* should support in ppport.h ? */
#define CLEAR_ERRSV() STMT_START { sv_setpvn(ERRSV,"",0); if (SvMAGICAL(ERRSV)) { mg_free(ERRSV); } SvPOK_only(ERRSV); } STMT_END
#endif /* CLEAR_ERRSV */

#ifdef _WIN32
/* use perl's uid_t/gid_t. disable apr's macros. */
#undef uid_t
Expand All @@ -50,6 +46,10 @@
#define NEED_sv_2pv_flags
#include "ppport.h"

#ifndef CLEAR_ERRSV /* should support in ppport.h ? */
#define CLEAR_ERRSV() STMT_START { sv_setpvn(ERRSV,"",0); if (SvMAGICAL(ERRSV)) { mg_free(ERRSV); } SvPOK_only(ERRSV); } STMT_END
#endif /* CLEAR_ERRSV */

#ifdef _WIN32
/* no use perl compatible macros. it break apr's structure. ex: bucket->link */
#undef link
Expand Down

0 comments on commit fae83c4

Please sign in to comment.