aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/include/ecpg_informix.h
diff options
context:
space:
mode:
authorMichael Meskes <meskes@postgresql.org>2008-02-15 11:20:21 +0000
committerMichael Meskes <meskes@postgresql.org>2008-02-15 11:20:21 +0000
commitefac2796e64f50f899c49524289d92afa89f1fc8 (patch)
tree9c351279b4888e181a64aa7fe23001e65b58f298 /src/interfaces/ecpg/include/ecpg_informix.h
parentdf1e965e12cdd48c11057ee6e15346ee2b8b02f5 (diff)
downloadpostgresql-efac2796e64f50f899c49524289d92afa89f1fc8.tar.gz
postgresql-efac2796e64f50f899c49524289d92afa89f1fc8.zip
Changed the way symbols are defined in C in INFORMIX mode.
Diffstat (limited to 'src/interfaces/ecpg/include/ecpg_informix.h')
-rw-r--r--src/interfaces/ecpg/include/ecpg_informix.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/interfaces/ecpg/include/ecpg_informix.h b/src/interfaces/ecpg/include/ecpg_informix.h
index c0991ddd47d..412782b4808 100644
--- a/src/interfaces/ecpg/include/ecpg_informix.h
+++ b/src/interfaces/ecpg/include/ecpg_informix.h
@@ -1,6 +1,6 @@
/*
* This file contains stuff needed to be as compatible to Informix as possible.
- * $PostgreSQL: pgsql/src/interfaces/ecpg/include/ecpg_informix.h,v 1.20 2008/02/14 12:27:26 meskes Exp $
+ * $PostgreSQL: pgsql/src/interfaces/ecpg/include/ecpg_informix.h,v 1.21 2008/02/15 11:20:21 meskes Exp $
*/
#ifndef _ECPG_INFORMIX_H
#define _ECPG_INFORMIX_H
@@ -82,6 +82,11 @@ extern int dttofmtasc(timestamp *, char *, int, char *);
extern int intoasc(interval *, char *);
extern int dtcvfmtasc(char *, char *, timestamp *);
+/* we also define Informix datatypes here */
+typedef timestamp dtime_t;
+typedef interval intrvl_t;
+typedef decimal dec_t;
+
#ifdef __cplusplus
}
#endif