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

看板DFBSD_commit作者時間15年前 (2010/07/21 19:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit 4cc93e2d831996f09ad103c3d1ab995b27840014 Author: Sascha Wildner <saw@online.de> 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(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/4cc93e2d831996f09ad103c3d1ab995b27840014 -- DragonFly BSD source repository
文章代碼(AID): #1CHjDoMm (DFBSD_commit)