Commit fbfa8d253d59dab7ab0b507d7675f1e3e315dbd1

  • avatar
  • Petr Ovtchenkov (Committer)
  • Tue Aug 18 07:49:53 CEST 2009
  • avatar
  • ddeakins <DavidDeakins @gm…l.com> (Author)
  • Mon Aug 17 00:19:33 CEST 2009
Fix C library in global namespace deduction.

The decision to declare _STLP_VENDOR_GLOBAL_CSTD is determined
by looking for _STLP_HAS_NO_NEW_C_HEADERS.  In the situation
where new C headers are present, but are not used
(_STLP_USE_NEW_C_HEADERS is not defined), this will mistakenly
believe that the C library objects are not in the global
namespace.  The logic was changed to look at
!defined(_STLP_USE_NEW_C_HEADERS) rather than
defined(_STLP_HAS_NO_NEW_C_HEADERS).
  
367367#endif
368368
369369/* this always mean the C library is in global namespace */
370#if defined (_STLP_HAS_NO_NEW_C_HEADERS) && !defined (_STLP_VENDOR_GLOBAL_CSTD)
370#if !defined (_STLP_USE_NEW_C_HEADERS) && !defined (_STLP_VENDOR_GLOBAL_CSTD)
371371# define _STLP_VENDOR_GLOBAL_CSTD 1
372372#endif
373373