diff options
Diffstat (limited to 'gl/printf-parse.c')
| -rw-r--r-- | gl/printf-parse.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/gl/printf-parse.c b/gl/printf-parse.c index a33e27a0..79b35034 100644 --- a/gl/printf-parse.c +++ b/gl/printf-parse.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Formatted output to strings. | 1 | /* Formatted output to strings. |
| 2 | Copyright (C) 1999-2000, 2002-2003, 2006-2024 Free Software Foundation, Inc. | 2 | Copyright (C) 1999-2000, 2002-2003, 2006-2025 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is free software: you can redistribute it and/or modify | 4 | This file is free software: you can redistribute it and/or modify |
| 5 | it under the terms of the GNU Lesser General Public License as | 5 | it under the terms of the GNU Lesser General Public License as |
| @@ -600,20 +600,14 @@ PRINTF_PARSE (const CHAR_T *format, DIRECTIVES *d, arguments *a) | |||
| 600 | if (signed_type == TYPE_LONGINT | 600 | if (signed_type == TYPE_LONGINT |
| 601 | /* For backward compatibility only. */ | 601 | /* For backward compatibility only. */ |
| 602 | || signed_type == TYPE_LONGLONGINT) | 602 | || signed_type == TYPE_LONGLONGINT) |
| 603 | #if HAVE_WCHAR_T | ||
| 604 | type = TYPE_WIDE_STRING; | 603 | type = TYPE_WIDE_STRING; |
| 605 | #else | ||
| 606 | goto error; | ||
| 607 | #endif | ||
| 608 | else | 604 | else |
| 609 | type = TYPE_STRING; | 605 | type = TYPE_STRING; |
| 610 | break; | 606 | break; |
| 611 | #if HAVE_WCHAR_T | ||
| 612 | case 'S': | 607 | case 'S': |
| 613 | type = TYPE_WIDE_STRING; | 608 | type = TYPE_WIDE_STRING; |
| 614 | c = 's'; | 609 | c = 's'; |
| 615 | break; | 610 | break; |
| 616 | #endif | ||
| 617 | case 'p': | 611 | case 'p': |
| 618 | type = TYPE_POINTER; | 612 | type = TYPE_POINTER; |
| 619 | break; | 613 | break; |
