diff options
author | Bruce Momjian <bruce@momjian.us> | 2008-06-17 16:09:06 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2008-06-17 16:09:06 +0000 |
commit | dc69c0362f291897273a67cb0ccf5d03d11026f2 (patch) | |
tree | 0082403981e6aff67e49b20867721664091dabc1 /src/include/c.h | |
parent | 2e835a4961eab760d1b08aeebd40a755d507999f (diff) | |
download | postgresql-dc69c0362f291897273a67cb0ccf5d03d11026f2.tar.gz |
Move USE_WIDE_UPPER_LOWER define to c.h, and remove TS_USE_WIDE and use
USE_WIDE_UPPER_LOWER instead.
Diffstat (limited to 'src/include/c.h')
-rw-r--r-- | src/include/c.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/include/c.h b/src/include/c.h index 86b0d9f999..16ccb4cf4e 100644 --- a/src/include/c.h +++ b/src/include/c.h @@ -12,7 +12,7 @@ * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/c.h,v 1.226 2008/04/21 00:26:46 tgl Exp $ + * $PostgreSQL: pgsql/src/include/c.h,v 1.227 2008/06/17 16:09:06 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -813,6 +813,14 @@ extern int fdatasync(int fildes); #define HAVE_STRTOULL 1 #endif +/* + * We assume if we have these two functions, we have their friends too, and + * can use the wide-character functions. + */ +#if defined(HAVE_WCSTOMBS) && defined(HAVE_TOWLOWER) +#define USE_WIDE_UPPER_LOWER +#endif + /* EXEC_BACKEND defines */ #ifdef EXEC_BACKEND #define NON_EXEC_STATIC |