aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/include/sqlca.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2001-05-03 16:07:52 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2001-05-03 16:07:52 +0000
commitf13cb7e524b157adef3a6571b13ba16cc93eddd8 (patch)
tree8105c498e552169e9c698099f9184b33df73b95d /src/interfaces/ecpg/include/sqlca.h
parentb95ff0c54232a50fa1e52628a729dbe85218833c (diff)
downloadpostgresql-f13cb7e524b157adef3a6571b13ba16cc93eddd8.tar.gz
postgresql-f13cb7e524b157adef3a6571b13ba16cc93eddd8.zip
Fixes to make ecpg work on Cygwin, from Jason Tishler <Jason.Tishler@dothill.com>.
Diffstat (limited to 'src/interfaces/ecpg/include/sqlca.h')
-rw-r--r--src/interfaces/ecpg/include/sqlca.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/interfaces/ecpg/include/sqlca.h b/src/interfaces/ecpg/include/sqlca.h
index 319a5bc59f1..3f7e307da76 100644
--- a/src/interfaces/ecpg/include/sqlca.h
+++ b/src/interfaces/ecpg/include/sqlca.h
@@ -1,6 +1,14 @@
#ifndef POSTGRES_SQLCA_H
#define POSTGRES_SQLCA_H
+#ifndef DLLIMPORT
+#ifdef __CYGWIN__
+#define DLLIMPORT __declspec (dllimport)
+#else
+#define DLLIMPORT
+#endif /* __CYGWIN__ */
+#endif /* DLLIMPORT */
+
#define SQLERRMC_LEN 70
#ifdef __cplusplus
@@ -45,7 +53,7 @@ extern "C"
char sqlext[8];
};
- extern struct sqlca sqlca;
+ extern DLLIMPORT struct sqlca sqlca;
#ifdef __cplusplus