diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-02-17 12:19:18 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-02-17 12:19:18 -0800 |
commit | 24951703b738407e172343f7721bd8217ee8430e (patch) | |
tree | 355d13df31901a7644aa6fc59a8dd3185291b708 /src | |
parent | c908d2773aea21692edcd1ea8aa9e11e9f5828b7 (diff) |
unifdef sony
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/util/fontxlfd.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/util/fontxlfd.c b/src/util/fontxlfd.c index 0a4be1d..f37e253 100644 --- a/src/util/fontxlfd.c +++ b/src/util/fontxlfd.c @@ -42,12 +42,7 @@ from The Open Group. #include <X11/Xos.h> #include <math.h> #include <stdlib.h> -#if defined(sony) && !defined(SYSTYPE_SYSV) && !defined(_SYSTYPE_SYSV) -#define NO_LOCALE -#endif -#ifndef NO_LOCALE #include <locale.h> -#endif #include <ctype.h> #include <stdio.h> /* for sprintf() */ #include "src/util/replace.h" @@ -70,9 +65,7 @@ GetInt(char *ptr, int *val) #define maxchar(p) ((p).max_char_low + ((p).max_char_high << 8)) -#ifndef NO_LOCALE static struct lconv *locale = 0; -#endif static const char *radix = ".", *plus = "+", *minus = "-"; static char * @@ -80,7 +73,6 @@ readreal(char *ptr, double *result) { char buffer[80], *p1, *p2; -#ifndef NO_LOCALE /* Figure out what symbols apply in this locale */ if (!locale) @@ -93,7 +85,6 @@ readreal(char *ptr, double *result) if (locale->negative_sign && *locale->negative_sign) minus = locale->negative_sign; } -#endif /* Copy the first 80 chars of ptr into our local buffer, changing symbols as needed. */ for (p1 = ptr, p2 = buffer; @@ -125,7 +116,6 @@ xlfd_double_to_text(double value, char *buffer, int space_required) int ndigits, exponent; const size_t buflen = XLFD_DOUBLE_TO_TEXT_BUF_SIZE; -#ifndef NO_LOCALE if (!locale) { locale = localeconv(); @@ -136,7 +126,6 @@ xlfd_double_to_text(double value, char *buffer, int space_required) if (locale->negative_sign && *locale->negative_sign) minus = locale->negative_sign; } -#endif if (space_required) *buffer++ = ' '; |