This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

[patch libstdc++]: Enable use of 'long long' for mingw targets


Hello,

this patch enables the 'long long' use in libstdc++ for Windows native targets.

ChangeLog

2013-09-13  Kai Tietz  <ktietz@redhat.com>

    * config/os/mingw32/os_defines.h (_GLIBCXX_USE_LONG_LONG):
    Enable feature.
    * config/os/mingw-w64/os_defines.h (_GLIBCXX_USE_LONG_LONG):
    Likewise.

Tested for i686-w64-mingw32, and x86_64-w64-mingw32. I will apply
soon, if there are no objections.

Regards,
Kai

Index: config/os/mingw32/os_defines.h
===================================================================
--- config/os/mingw32/os_defines.h    (Revision 202553)
+++ config/os/mingw32/os_defines.h    (Arbeitskopie)
@@ -75,4 +75,7 @@
 #define _GLIBCXX_LLP64 1
 #endif

+#undef _GLIBCXX_USE_LONG_LONG
+#define _GLIBCXX_USE_LONG_LONG 1
+
 #endif
Index: config/os/mingw32-w64/os_defines.h
===================================================================
--- config/os/mingw32-w64/os_defines.h    (Revision 202553)
+++ config/os/mingw32-w64/os_defines.h    (Arbeitskopie)
@@ -78,4 +78,7 @@
 #define _GLIBCXX_LLP64 1
 #endif

+#undef _GLIBCXX_USE_LONG_LONG
+#define _GLIBCXX_USE_LONG_LONG 1
+
 #endif


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