|
[MinGW-dvlpr] C++ conforming 'cstd-branch' of mingw runtime
From: Danny Smith <dannysmith@cl...> - 2002-09-19 01:11
|
I would like to follow newlib example of putting following (or similar) from newlibs's _ansi.h into _mingw.h and then modify the C runtime headers accordingly. I think this would allow C++ conformance without having to do major overhaul of C-runtime headers. This approach, together with c-compatability layer is advice of Benjamin Kosnik for frees systems (newlib, glibc, and BSD), offered here: http://gcc.gnu.org/ml/libstdc++/2002-06/msg00199.html I propose to create CVS branch for this, with target of merge into head prior to GCC 3.3 release early next year. /* ISO C++. */ #ifdef __cplusplus #if !(defined(_BEGIN_STD_C) && defined(_END_STD_C)) #ifdef _HAVE_STD_CXX #define _BEGIN_STD_C namespace std { extern "C" { #define _END_STD_C } } #else #define _BEGIN_STD_C extern "C" { #define _END_STD_C } #endif #endif #else #define _BEGIN_STD_C #define _END_STD_C #endif |
| Thread | Author | Date |
|---|---|---|
| [MinGW-dvlpr] C++ conforming 'cstd-branch' of mingw runtime | Danny Smith <dannysmith@cl...> |