diff --git a/bin/pgut/pgut.h b/bin/pgut/pgut.h index c33f389..e8816d3 100644 --- a/bin/pgut/pgut.h +++ b/bin/pgut/pgut.h @@ -24,6 +24,10 @@ #define INFINITE_STR "INFINITE" +#ifdef _MSC_VER +#define __attribute__(x) +#endif + typedef enum YesNo { DEFAULT, diff --git a/lib/pgut/pgut-spi.h b/lib/pgut/pgut-spi.h index 5406b36..c5ce52f 100644 --- a/lib/pgut/pgut-spi.h +++ b/lib/pgut/pgut-spi.h @@ -12,6 +12,10 @@ #include "executor/spi.h" +#ifdef _MSC_VER +#define __attribute__(x) +#endif + extern void execute(int expected, const char *sql); extern void execute_plan(int expected, SPIPlanPtr plan, Datum *values, const char *nulls); extern void execute_with_format(int expected, const char *format, ...)