Opened 10 years ago
Last modified 9 years ago
#297 new defect
C++11 support
Reported by: | KO Myung-Hun | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | libc-0.7 |
Component: | libc | Version: | 0.6.5 |
Severity: | normal | Keywords: | |
Cc: |
Description
Hi/2.
Our libc headers lacks of C++11 standard. Especially, gcc 4.9.0 requires max_align_t to be defined by stddef.h in its cstddef.
Change History (2)
comment:1 by , 9 years ago
comment:2 by , 9 years ago
C++11 standard introduced long long stuffs. However, sys/cdefs.h
does not define __LONG_LONG_SUPPORTED
if __STRICT_ANSI__
, which is defined by -std=c++11
. As a result, long long stuffs are disabled in C++11.
Note:
See TracTickets
for help on using tickets.
386/_stdint.h
does not define constant macros such asINT64_C()
and limit macros such asINT64_MAX
on C++11. Because if C++, it requres__STDC_CONSTANT_MACROS
and__STDC_LIMIT_MACROS
to be defined. However, C++11 removed those limitations. That is, without defining those macros, constant macros and limit macros should be available.