Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r79643 - trunk/libs/atomic/test
From: hcb_at_[hidden]
Date: 2012-07-21 14:50:11


Author: helge.bahmann
Date: 2012-07-21 14:50:11 EDT (Sat, 21 Jul 2012)
New Revision: 79643
URL: http://svn.boost.org/trac/boost/changeset/79643

Log:
Prefer boost::cstdint to stdint

Fixes compilation errors on a number of platforms.

Text files modified:
   trunk/libs/atomic/test/fallback_api.cpp | 17 +++++++++--------
   trunk/libs/atomic/test/native_api.cpp | 17 +++++++++--------
   2 files changed, 18 insertions(+), 16 deletions(-)

Modified: trunk/libs/atomic/test/fallback_api.cpp
==============================================================================
--- trunk/libs/atomic/test/fallback_api.cpp (original)
+++ trunk/libs/atomic/test/fallback_api.cpp 2012-07-21 14:50:11 EDT (Sat, 21 Jul 2012)
@@ -8,6 +8,7 @@
 #define BOOST_ATOMIC_FORCE_FALLBACK 1
 
 #include <boost/atomic.hpp>
+#include <boost/cstdint.hpp>
 #include <boost/test/minimal.hpp>
 
 #include "api_test_helpers.hpp"
@@ -19,20 +20,20 @@
     test_integral_api<char>();
     test_integral_api<signed char>();
     test_integral_api<unsigned char>();
- test_integral_api<uint8_t>();
- test_integral_api<int8_t>();
+ test_integral_api<boost::uint8_t>();
+ test_integral_api<boost::int8_t>();
     test_integral_api<short>();
     test_integral_api<unsigned short>();
- test_integral_api<uint16_t>();
- test_integral_api<int16_t>();
+ test_integral_api<boost::uint16_t>();
+ test_integral_api<boost::int16_t>();
     test_integral_api<int>();
     test_integral_api<unsigned int>();
- test_integral_api<uint32_t>();
- test_integral_api<int32_t>();
+ test_integral_api<boost::uint32_t>();
+ test_integral_api<boost::int32_t>();
     test_integral_api<long>();
     test_integral_api<unsigned long>();
- test_integral_api<uint64_t>();
- test_integral_api<int64_t>();
+ test_integral_api<boost::uint64_t>();
+ test_integral_api<boost::int64_t>();
     test_integral_api<long long>();
     test_integral_api<unsigned long long>();
 

Modified: trunk/libs/atomic/test/native_api.cpp
==============================================================================
--- trunk/libs/atomic/test/native_api.cpp (original)
+++ trunk/libs/atomic/test/native_api.cpp 2012-07-21 14:50:11 EDT (Sat, 21 Jul 2012)
@@ -5,6 +5,7 @@
 // http://www.boost.org/LICENSE_1_0.txt)
 
 #include <boost/atomic.hpp>
+#include <boost/cstdint.hpp>
 #include <boost/test/minimal.hpp>
 
 #include "api_test_helpers.hpp"
@@ -16,20 +17,20 @@
     test_integral_api<char>();
     test_integral_api<signed char>();
     test_integral_api<unsigned char>();
- test_integral_api<uint8_t>();
- test_integral_api<int8_t>();
+ test_integral_api<boost::uint8_t>();
+ test_integral_api<boost::int8_t>();
     test_integral_api<short>();
     test_integral_api<unsigned short>();
- test_integral_api<uint16_t>();
- test_integral_api<int16_t>();
+ test_integral_api<boost::uint16_t>();
+ test_integral_api<boost::int16_t>();
     test_integral_api<int>();
     test_integral_api<unsigned int>();
- test_integral_api<uint32_t>();
- test_integral_api<int32_t>();
+ test_integral_api<boost::uint32_t>();
+ test_integral_api<boost::int32_t>();
     test_integral_api<long>();
     test_integral_api<unsigned long>();
- test_integral_api<uint64_t>();
- test_integral_api<int64_t>();
+ test_integral_api<boost::uint64_t>();
+ test_integral_api<boost::int64_t>();
     test_integral_api<long long>();
     test_integral_api<unsigned long long>();
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk