Skip to content

Commit

Permalink
Do not assume integer types in global namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
tivek committed Oct 25, 2014
1 parent 24f013c commit 77be48f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cxx11/c++11-test-cstdint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
2 changes: 2 additions & 0 deletions entityx/Benchmarks_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
using namespace std;
using namespace entityx;

using std::uint64_t;


struct AutoTimer {
~AutoTimer() {
Expand Down
2 changes: 2 additions & 0 deletions entityx/Entity.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@

namespace entityx {

typedef std::uint32_t uint32_t;
typedef std::uint64_t uint32_t;

class EntityManager;

Expand Down

0 comments on commit 77be48f

Please sign in to comment.