Commit b49aadf8 by Paolo Carlini Committed by Paolo Carlini

postypes.h: Do not include <stdint.h>.

2008-07-05  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/bits/postypes.h: Do not include <stdint.h>.

	* include/Makefile.am: Reorder.

From-SVN: r137505
parent ea31932d
2008-07-05 Paolo Carlini <paolo.carlini@oracle.com> 2008-07-05 Paolo Carlini <paolo.carlini@oracle.com>
* include/bits/postypes.h: Do not include <stdint.h>.
* include/Makefile.am: Reorder.
2008-07-05 Paolo Carlini <paolo.carlini@oracle.com>
* include/std/ratio: Prefer __INTMAX_MAX__ to INTMAX_MAX (INTMAX_MIN). * include/std/ratio: Prefer __INTMAX_MAX__ to INTMAX_MAX (INTMAX_MIN).
2008-07-05 Chris Fairles <chris.fairles@gmail.com> 2008-07-05 Chris Fairles <chris.fairles@gmail.com>
......
...@@ -54,8 +54,8 @@ std_headers = \ ...@@ -54,8 +54,8 @@ std_headers = \
${std_srcdir}/ostream \ ${std_srcdir}/ostream \
${std_srcdir}/queue \ ${std_srcdir}/queue \
${std_srcdir}/random \ ${std_srcdir}/random \
${std_srcdir}/regex \
${std_srcdir}/ratio \ ${std_srcdir}/ratio \
${std_srcdir}/regex \
${std_srcdir}/set \ ${std_srcdir}/set \
${std_srcdir}/sstream \ ${std_srcdir}/sstream \
${std_srcdir}/stack \ ${std_srcdir}/stack \
......
...@@ -46,10 +46,6 @@ ...@@ -46,10 +46,6 @@
#include <cwchar> // For mbstate_t #include <cwchar> // For mbstate_t
#ifdef _GLIBCXX_HAVE_STDINT_H
#include <stdint.h> // For int64_t
#endif
_GLIBCXX_BEGIN_NAMESPACE(std) _GLIBCXX_BEGIN_NAMESPACE(std)
// The types streamoff, streampos and wstreampos and the class // The types streamoff, streampos and wstreampos and the class
...@@ -68,7 +64,11 @@ _GLIBCXX_BEGIN_NAMESPACE(std) ...@@ -68,7 +64,11 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
* was typedef long. * was typedef long.
*/ */
#ifdef _GLIBCXX_HAVE_INT64_T #ifdef _GLIBCXX_HAVE_INT64_T
typedef int64_t streamoff; # if (__CHAR_BIT__ * __SIZEOF_LONG__ == 64)
typedef long streamoff;
# else
typedef long long streamoff;
# endif
#else #else
typedef long long streamoff; typedef long long streamoff;
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment