diff options
| author | Steve Singer | 2011-05-04 15:38:43 +0000 |
|---|---|---|
| committer | Steve Singer | 2011-05-04 15:38:43 +0000 |
| commit | 275a2eaddf995e3376b8fb42dad5c199a6a98bfc (patch) | |
| tree | 8c14a60337fb15432602b5847967c810e4f20eb4 /config_msvc.h | |
| parent | 92f7deec97fd86d44f079bf6efea98443237ce54 (diff) | |
Visual Studio Support + Bug #90.
-Adding NMake (Visual Studio) makefiles for slon and slonik.
-Removing postgres.h from slon. Instead we have copied relevant
bits from the postgresql headers to types.h since these bits
are more us re-using postgresql portability functions.
Slon does not actually link in with the backend or need
backend functionality.
-Other changes to support Visual Studio builds of slony
- Eliminate depenency on postgres.h
Squash merge from 2.0 working branch to master/2.1
- Fixes for Sun C compiler builds.
These fixes allow slony to build with the SUN C compiler
Diffstat (limited to 'config_msvc.h')
| -rw-r--r-- | config_msvc.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/config_msvc.h b/config_msvc.h new file mode 100644 index 00000000..96a66091 --- /dev/null +++ b/config_msvc.h @@ -0,0 +1,21 @@ + +#ifndef SLONY_I_CONFIG_H +#define SLONY_I_CONFIG_H + +#include <server/pg_config.h> + +#define SLONY_I_VERSION_STRING "2.1.0" +#define SLONY_I_VERSION_STRING_DEC 2,1,0 +#if PG_VERSION_NUM >= 90000 +#define HAVE_GETACTIVESNAPSHOT 1 +#define HAVE_TYPCACHE 1 +#elif PG_VERSION_NUM >= 80400 +#define HAVE_GETACTIVESNAPSHOT 1 +#define HAVE_TYPCACHE 1 +#elif PG_VERSION_NUM >= 80300 +#define HAVE_TYPCACHE 1 +#else +#error "Postgresql 8.3 or higher is required" +#endif + +#endif /* SLONY_I_CONFIG_H */ |
