aboutsummaryrefslogtreecommitdiffstats
path: root/cxx11/c++11-test-cstdint.cpp
diff options
context:
space:
mode:
authorAlec Thomas <alec@swapoff.org>2014-10-27 10:28:33 +1100
committerAlec Thomas <alec@swapoff.org>2014-10-27 10:28:33 +1100
commitaa0a2b3a49f34eb5c63b8a56519b30627b1ae637 (patch)
treefe3ddfc822cb712f6ec05c1c22c2dea713135ea3 /cxx11/c++11-test-cstdint.cpp
parent8158e9c732c75baf47e51c304ab593f9feb842c6 (diff)
parent142b0835bf955cecfe48805012e0a1771a196903 (diff)
Merge pull request #61 from tivek/remove_c_std_libraries
Replace stdint.h with cstdint
Diffstat (limited to 'cxx11/c++11-test-cstdint.cpp')
-rw-r--r--cxx11/c++11-test-cstdint.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/cxx11/c++11-test-cstdint.cpp b/cxx11/c++11-test-cstdint.cpp
index be2878f..6ba852f 100644
--- a/cxx11/c++11-test-cstdint.cpp
+++ b/cxx11/c++11-test-cstdint.cpp
@@ -2,9 +2,9 @@
int main()
{
bool test =
- (sizeof(int8_t) == 1) &&
- (sizeof(int16_t) == 2) &&
- (sizeof(int32_t) == 4) &&
- (sizeof(int64_t) == 8);
+ (sizeof(std::int8_t) == 1) &&
+ (sizeof(std::int16_t) == 2) &&
+ (sizeof(std::int32_t) == 4) &&
+ (sizeof(std::int64_t) == 8);
return test ? 0 : 1;
}