Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Nov 2012 08:09:21 +0900
From:      Yamaya Takashi <yamayan@kbh.biglobe.ne.jp>
To:        toolchain@freebsd.org
Subject:   [patch][libc++]using some undeclared functions with -std=c++98, -std=c++03 or -ansi
Message-ID:  <50AEB0A1.3090803@kbh.biglobe.ne.jp>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------050504010505010207000702
Content-Type: text/plain; charset=ISO-2022-JP
Content-Transfer-Encoding: 7bit

hi

With -std=c++98, -std=c++03 or -ansi, __LONG_LONG_SUPPORTED is not defined.
So some functions((lldiv_t, )atoll, strtoll, strtoull, llabs, lldiv,
wcstoll, wcstoull) are undeclared.
But libc++ headers(cstdlib and cwchar) use them.



--------------050504010505010207000702
Content-Type: text/plain; charset=UTF-8;
 name="libcxx.patch"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename="libcxx.patch"

SW5kZXg6IGNvbnRyaWIvbGliYysrL2luY2x1ZGUvY3N0ZGxpYgo9PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0t
LSBjb250cmliL2xpYmMrKy9pbmNsdWRlL2NzdGRsaWIJKHJldmlzaW9uIDI0MTkyNykKKysr
IGNvbnRyaWIvbGliYysrL2luY2x1ZGUvY3N0ZGxpYgkod29ya2luZyBjb3B5KQpAQCAtOTcs
MTggKzk3LDI2IEBACiB1c2luZyA6OnNpemVfdDsKIHVzaW5nIDo6ZGl2X3Q7CiB1c2luZyA6
OmxkaXZfdDsKKyNpZmRlZiBfX0xPTkdfTE9OR19TVVBQT1JURUQKIHVzaW5nIDo6bGxkaXZf
dDsKKyNlbmRpZgogdXNpbmcgOjphdG9mOwogdXNpbmcgOjphdG9pOwogdXNpbmcgOjphdG9s
OworI2lmZGVmIF9fTE9OR19MT05HX1NVUFBPUlRFRAogdXNpbmcgOjphdG9sbDsKKyNlbmRp
ZgogdXNpbmcgO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jcHk7CiB1c2luZyA6Ondjc2NhdDsK
--------------050504010505010207000702--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?50AEB0A1.3090803>