Skip to content

Commit

Permalink
fix compilation on win32 and PostgreSQL 9.2
Browse files Browse the repository at this point in the history
  • Loading branch information
okbob committed Feb 7, 2015
1 parent 4392c38 commit 0349342
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plpgsql_check.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,12 @@
#else

/* Older version doesn't support event triggers */

#ifdef _MSC_VER
typedef struct {char nothing[0];} EventTriggerData;
#else
typedef struct {} EventTriggerData;
#endif

typedef enum PLpgSQL_trigtype
{
Expand Down
4 changes: 4 additions & 0 deletions plpgsql_check_builtins.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
* _PG_init should be exported, but PGDLLEXPORT cannot be used due
* collision with _PG_init from plpgsql.h
*/
#ifdef _M_X64
#pragma comment( linker, "/export:_PG_init" )
#else
#pragma comment( linker, "/export:_PG_init=__PG_init" )
#endif
#endif

#ifndef PGDLLEXPORT
Expand Down

0 comments on commit 0349342

Please sign in to comment.