aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/include/ecpglib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/interfaces/ecpg/include/ecpglib.h')
-rw-r--r--src/interfaces/ecpg/include/ecpglib.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/interfaces/ecpg/include/ecpglib.h b/src/interfaces/ecpg/include/ecpglib.h
index fcb89d057be..8c682e5782c 100644
--- a/src/interfaces/ecpg/include/ecpglib.h
+++ b/src/interfaces/ecpg/include/ecpglib.h
@@ -1,7 +1,7 @@
/*
* this is a small part of c.h since we don't want to leak all postgres
* definitions into ecpg programs
- * $PostgreSQL: pgsql/src/interfaces/ecpg/include/ecpglib.h,v 1.76 2008/03/20 16:29:45 meskes Exp $
+ * $PostgreSQL: pgsql/src/interfaces/ecpg/include/ecpglib.h,v 1.77 2008/05/16 15:20:04 petere Exp $
*/
#ifndef _ECPGLIB_H
@@ -12,6 +12,14 @@
#include "sqlca.h"
#include <string.h>
+#ifdef ENABLE_NLS
+extern char *
+ecpg_gettext(const char *msgid)
+__attribute__((format_arg(1)));
+#else
+#define ecpg_gettext(x) (x)
+#endif
+
#ifndef __cplusplus
#ifndef bool
#define bool char