This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[v3] Do not include <langinfo.h>


Hi,

not a very big deal, but it looks like we can easily remove about 10 Kb of "junk" from many headers, <string>, <locale>, streams... Tested x86_64-linux without PCHs.

Paolo.

//////////////
2007-04-11  Paolo Carlini  <pcarlini@suse.de>

	* config/locale/gnu/c_locale.h: Do not include <langinfo.h>
	and <iconv.h>.
	* config/locale/gnu/c++locale_internal.h: Include <langinfo.h>.
Index: config/locale/gnu/c_locale.h
===================================================================
--- config/locale/gnu/c_locale.h	(revision 123715)
+++ config/locale/gnu/c_locale.h	(working copy)
@@ -1,6 +1,6 @@
 // Wrapper for underlying C-language localization -*- C++ -*-
 
-// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007
 // Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -47,8 +47,6 @@
 #include <cstring>              // get std::strlen
 #include <cstdio>               // get std::vsnprintf or std::vsprintf
 #include <clocale>
-#include <langinfo.h>		// For codecvt
-#include <iconv.h>		// For codecvt using iconv, iconv_t
 #include <libintl.h> 		// For messages
 #include <cstdarg>
 
Index: config/locale/gnu/c++locale_internal.h
===================================================================
--- config/locale/gnu/c++locale_internal.h	(revision 123715)
+++ config/locale/gnu/c++locale_internal.h	(working copy)
@@ -38,6 +38,7 @@
 #include <bits/c++config.h>
 #include <clocale>
 #include <cstdlib>
+#include <langinfo.h>
 
 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
                                                   

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]