git: <wchar.h>: Partial revert of b9286c919de6585c967b8dbf2c472fba7b33f9f1.

Sascha Wildner swildner at
Wed Jul 21 03:37:07 PDT 2010

commit 4cc93e2d831996f09ad103c3d1ab995b27840014
Author: Sascha Wildner <saw at>
Date:   Wed Jul 21 12:34:44 2010 +0200

    <wchar.h>: Partial revert of b9286c919de6585c967b8dbf2c472fba7b33f9f1.
    Before Hasso's commit, both wchar_t and WCHAR_{MIN,MAX} were inside a
    #ifndef __cplusplus. With this state, devel/boost-libs in pkgsrc indeed
    fails to build because it can't find WCHAR_{MIN,MAX}.
    However, with the #ifndef completely removed (after Hasso's commit),
    clang whines during C++ compilation because wchar_t is a built in type
    in C++.
    Therefore, bring back the #ifndef, but only around wchar_t and not
    around the limits. This keeps boost-libs building, silences clang, is
    in line with what the C++ standard says and with what others (FreeBSD,
    for example) do.

Summary of changes:
 include/wchar.h  |    3 ++-
 sys/sys/stdint.h |    3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

DragonFly BSD source repository

More information about the Commits mailing list