aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTatsuo Ishii <ishii@postgresql.org>2000-09-26 05:42:15 +0000
committerTatsuo Ishii <ishii@postgresql.org>2000-09-26 05:42:15 +0000
commite9da3dc673ecdb934debdfec781afbd2a77ae79a (patch)
treeaaf5968b4eeb43c388219e34e14cf2c90f195098 /src
parenta279ced8847b678b92287f02447423ff578d45a1 (diff)
downloadpostgresql-e9da3dc673ecdb934debdfec781afbd2a77ae79a.tar.gz
postgresql-e9da3dc673ecdb934debdfec781afbd2a77ae79a.zip
Fix compile error in ecpg when enable-multibyte is on. This is due to
illegal call to pg_mbclipen() that is for backend only. However I have not remove the entire part of the problem, rather mark it with #ifdef MULTIBYTE_NOTUSED since we should come back with a long range solution someday.
Diffstat (limited to 'src')
-rw-r--r--src/interfaces/ecpg/preproc/pgc.l6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/interfaces/ecpg/preproc/pgc.l b/src/interfaces/ecpg/preproc/pgc.l
index 4993d2ded7b..2eca5b02ac2 100644
--- a/src/interfaces/ecpg/preproc/pgc.l
+++ b/src/interfaces/ecpg/preproc/pgc.l
@@ -12,7 +12,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/pgc.l,v 1.62 2000/09/21 11:56:07 meskes Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/pgc.l,v 1.63 2000/09/26 05:42:15 ishii Exp $
*
*-------------------------------------------------------------------------
*/
@@ -385,7 +385,7 @@ cppline {space}*#(.*\\{line_end})*.*
BEGIN(state_before);
if (strlen(literalbuf) >= NAMEDATALEN)
{
-#ifdef MULTIBYTE
+#ifdef MULTIBYTE_NOTUSED
int len;
len = pg_mbcliplen(literalbuf,strlen(literalbuf),NAMEDATALEN-1);
@@ -547,7 +547,7 @@ cppline {space}*#(.*\\{line_end})*.*
if (i >= NAMEDATALEN)
{
-#ifdef MULTIBYTE
+#ifdef MULTIBYTE_NOTUSED
int len;
len = pg_mbcliplen(lower_text,strlen(lower_text),NAMEDATALEN-1);