This is the mail archive of the gcc@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]

Re: [gcc-in-cxx] replacing qsort with std::sort


On 08/31/2009 08:26 AM, Pedro Lamarão wrote:
I'll try to include cstdlib in system.h to see if that's enough.

Note the existing


#ifdef HAVE_STDLIB_H
# include <stdlib.h>
#endif

You may wish to convert this to

#ifdef __cplusplus
# include <cstdlib>
#elif defined(HAVE_STDLIB_H)
# include <stdlib.h>
#endif

and similarly for all of the other C headers
that the C++ standard wraps.


r~



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