diff options
author | Tom Lane | 2017-09-22 15:00:58 +0000 |
---|---|---|
committer | Tom Lane | 2017-09-22 15:00:58 +0000 |
commit | 85feb77aa09cda9ff3e12cf95c757c499dc25343 (patch) | |
tree | 313b8bb0eb9cf4cff63a92dd5345d9d5c51b3b3a /src/include/c.h | |
parent | e6023ee7fa73a2d9a2d7524f63584844b2291def (diff) |
Assume wcstombs(), towlower(), and sibling functions are always present.
These functions are required by SUS v2, which is our minimum baseline
for Unix platforms, and are present on all interesting Windows versions
as well. Even our oldest buildfarm members have them. Thus, we were not
testing the "!USE_WIDE_UPPER_LOWER" code paths, which explains why the bug
fixed in commit e6023ee7f escaped detection. Per discussion, there seems
to be no more real-world value in maintaining this option. Hence, remove
the configure-time tests for wcstombs() and towlower(), remove the
USE_WIDE_UPPER_LOWER symbol, and remove all the !USE_WIDE_UPPER_LOWER code.
There's not actually all that much of the latter, but simplifying the #if
nests is a win in itself.
Discussion: https://postgr.es/m/20170921052928.GA188913@rfd.leadboat.com
Diffstat (limited to 'src/include/c.h')
-rw-r--r-- | src/include/c.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/include/c.h b/src/include/c.h index fd53010e249..b6a969787ac 100644 --- a/src/include/c.h +++ b/src/include/c.h @@ -1095,14 +1095,6 @@ 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 |