Thu Sep 14 03:50:58 2023 UTC ()
gcc: c_locale.h (c++locale.h): Drop unnecessary <cstdio> include

This has no longer been required since rev 1.6:

http://cvsweb.netbsd.org/bsdweb.cgi/src/external/gpl3/gcc/dist/libstdc++-v3/config/locale/dragonfly/c_locale.h#rev1.6

where __convert_from_v() migrated to .cc file, and direct call for
vsnprintf_l(3) from this header file was removed.


(rin)
diff -r1.7 -r1.8 src/external/gpl3/gcc/dist/libstdc++-v3/config/locale/dragonfly/c_locale.h

cvs diff -r1.7 -r1.8 src/external/gpl3/gcc/dist/libstdc++-v3/config/locale/dragonfly/c_locale.h (expand / switch to unified diff)

--- src/external/gpl3/gcc/dist/libstdc++-v3/config/locale/dragonfly/c_locale.h 2023/07/30 05:51:43 1.7
+++ src/external/gpl3/gcc/dist/libstdc++-v3/config/locale/dragonfly/c_locale.h 2023/09/14 03:50:58 1.8
@@ -34,28 +34,26 @@ @@ -34,28 +34,26 @@
34// Written by Benjamin Kosnik <bkoz@redhat.com> 34// Written by Benjamin Kosnik <bkoz@redhat.com>
35// Modified for DragonFly by John Marino <gnugcc@marino.st> 35// Modified for DragonFly by John Marino <gnugcc@marino.st>
36// Modified for NetBSD by Christos Zoulas <christos@zoulas.com> and 36// Modified for NetBSD by Christos Zoulas <christos@zoulas.com> and
37// matthew green <mrg@eterna.com.au> 37// matthew green <mrg@eterna.com.au>
38 38
39#ifndef _GLIBCXX_CXX_LOCALE_H 39#ifndef _GLIBCXX_CXX_LOCALE_H
40#define _GLIBCXX_CXX_LOCALE_H 1 40#define _GLIBCXX_CXX_LOCALE_H 1
41 41
42#pragma GCC system_header 42#pragma GCC system_header
43 43
44#include <clocale> 44#include <clocale>
45#ifndef __NetBSD__ 45#ifndef __NetBSD__
46#include <xlocale.h> 46#include <xlocale.h>
47#else 
48#include <cstdio> 
49#endif 47#endif
50 48
51#define _GLIBCXX_NUM_CATEGORIES 0 49#define _GLIBCXX_NUM_CATEGORIES 0
52 50
53namespace std _GLIBCXX_VISIBILITY(default) 51namespace std _GLIBCXX_VISIBILITY(default)
54{ 52{
55_GLIBCXX_BEGIN_NAMESPACE_VERSION 53_GLIBCXX_BEGIN_NAMESPACE_VERSION
56 54
57 typedef int* __c_locale; 55 typedef int* __c_locale;
58 56
59#ifndef __NetBSD__ 57#ifndef __NetBSD__
60 // Convert numeric value of type double and long double to string and 58 // Convert numeric value of type double and long double to string and
61 // return length of string. If vsnprintf is available use it, otherwise 59 // return length of string. If vsnprintf is available use it, otherwise