]> granicus.if.org Git - postgresql/commitdiff
Move declaration of check_function_bodies to where the perl headers
authorAndrew Dunstan <andrew@dunslane.net>
Thu, 29 Dec 2005 14:28:31 +0000 (14:28 +0000)
committerAndrew Dunstan <andrew@dunslane.net>
Thu, 29 Dec 2005 14:28:31 +0000 (14:28 +0000)
haven't had a chance to mangle the definition of DLLIMPORT (thanks again, perl guys).

src/pl/plperl/plperl.c

index 70c0ce493a491197f9349d2b0efc6ac0a346b4b3..d0a7988837737d7529aa5ee3e0397db6f24c507d 100644 (file)
@@ -33,7 +33,7 @@
  *       ENHANCEMENTS, OR MODIFICATIONS.
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/pl/plperl/plperl.c,v 1.97 2005/12/28 18:34:16 tgl Exp $
+ *       $PostgreSQL: pgsql/src/pl/plperl/plperl.c,v 1.98 2005/12/29 14:28:31 adunstan Exp $
  *
  **********************************************************************/
 
@@ -56,6 +56,9 @@
 #include "miscadmin.h"
 #include "mb/pg_wchar.h"
 
+/* define this before the perl headers get a chance to mangle DLLIMPORT */
+extern DLLIMPORT bool check_function_bodies;
+
 /* perl stuff */
 #include "EXTERN.h"
 #include "perl.h"
@@ -69,8 +72,6 @@
 #define pTHX void
 #endif
 
-extern DLLIMPORT bool check_function_bodies;
-
 
 /**********************************************************************
  * The information we cache about loaded procedures