From: Bruce Momjian Date: Sat, 17 Jul 1999 16:25:28 +0000 (+0000) Subject: Fix for multi-byte includes. X-Git-Tag: REL7_0~1734 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=33e826d1675cf8d4172d0fec87641c9d78d769c3;p=postgresql Fix for multi-byte includes. --- diff --git a/src/backend/utils/adt/varchar.c b/src/backend/utils/adt/varchar.c index b23a579017..7fa2480acd 100644 --- a/src/backend/utils/adt/varchar.c +++ b/src/backend/utils/adt/varchar.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/adt/varchar.c,v 1.52 1999/07/16 05:00:28 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/adt/varchar.c,v 1.53 1999/07/17 16:25:25 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -19,6 +19,10 @@ #include "catalog/pg_type.h" #include "utils/builtins.h" +#ifdef MULTIBYTE +#include "mb/pg_wchar.h" +#endif + #ifdef CYR_RECODE char *convertstr(char *, int, int); #endif diff --git a/src/backend/utils/init/postinit.c b/src/backend/utils/init/postinit.c index e22194c51b..022866b0a4 100644 --- a/src/backend/utils/init/postinit.c +++ b/src/backend/utils/init/postinit.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/init/postinit.c,v 1.46 1999/07/16 17:46:32 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/init/postinit.c,v 1.47 1999/07/17 16:25:25 momjian Exp $ * * NOTES * InitPostgres() is the function called from PostgresMain @@ -50,6 +50,10 @@ #include "utils/syscache.h" #include "version.h" +#ifdef MULTIBYTE +#include "mb/pg_wchar.h" +#endif + static void VerifySystemDatabase(void); static void VerifyMyDatabase(void); static void InitCommunication(void); diff --git a/src/backend/utils/mb/mbutils.c b/src/backend/utils/mb/mbutils.c index d5831b14e6..aa5b01ad56 100644 --- a/src/backend/utils/mb/mbutils.c +++ b/src/backend/utils/mb/mbutils.c @@ -3,11 +3,13 @@ * client encoding and server internal encoding. * (currently mule internal code (mic) is used) * Tatsuo Ishii - * $Id: mbutils.c,v 1.6 1999/05/25 16:12:43 momjian Exp $ */ + * $Id: mbutils.c,v 1.7 1999/07/17 16:25:26 momjian Exp $ */ #include #include +#include "postgres.h" +#include "miscadmin.h" #include "mb/pg_wchar.h" static int client_encoding = -1; diff --git a/src/backend/utils/mb/variable.c b/src/backend/utils/mb/variable.c index 2452518e12..64f4f7b6a9 100644 --- a/src/backend/utils/mb/variable.c +++ b/src/backend/utils/mb/variable.c @@ -2,9 +2,10 @@ * This file contains some public functions * related to show/set/reset variable commands. * Tatsuo Ishii - * $Id: variable.c,v 1.4 1999/05/25 16:12:44 momjian Exp $ + * $Id: variable.c,v 1.5 1999/07/17 16:25:27 momjian Exp $ */ +#include "postgres.h" #include "mb/pg_wchar.h" bool diff --git a/src/include/mb/pg_wchar.h b/src/include/mb/pg_wchar.h index a30e985a90..da33f5bf0f 100644 --- a/src/include/mb/pg_wchar.h +++ b/src/include/mb/pg_wchar.h @@ -1,9 +1,10 @@ -/* $Id: pg_wchar.h,v 1.10 1999/07/14 01:20:20 momjian Exp $ */ +/* $Id: pg_wchar.h,v 1.11 1999/07/17 16:25:28 momjian Exp $ */ #ifndef PG_WCHAR_H #define PG_WCHAR_H #include +#include "c.h" #define SQL_ASCII 0 /* SQL/ASCII */ #define EUC_JP 1 /* EUC for Japanese */