Browse files

oops, define CLEAR_ERRSV after #include.

  • Loading branch information...
1 parent 340720a commit fae83c4b7096471fcc04c42d10092d4b6e5959aa @spiritloose committed Oct 17, 2009
Showing with 4 additions and 4 deletions.
  1. +4 −4 mod_psgi.c
View
8 mod_psgi.c
@@ -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
@@ -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

0 comments on commit fae83c4

Please sign in to comment.