diff --git a/src/json.hpp b/src/json.hpp
index 363cb11c..efcb192f 100644
--- a/src/json.hpp
+++ b/src/json.hpp
@@ -183,8 +183,8 @@ template <
     template<typename U, typename... Args> class ArrayType = std::vector,
     class StringType = std::string,
     class BooleanType = bool,
-    class NumberIntegerType = int64_t,
-    class NumberUnsignedType = uint64_t,
+    class NumberIntegerType = std::int64_t,
+    class NumberUnsignedType = std::uint64_t,
     class NumberFloatType = double,
     template<typename U> class AllocatorType = std::allocator
     >
diff --git a/src/json.hpp.re2c b/src/json.hpp.re2c
index af2823e4..612ca203 100644
--- a/src/json.hpp.re2c
+++ b/src/json.hpp.re2c
@@ -183,8 +183,8 @@ template <
     template<typename U, typename... Args> class ArrayType = std::vector,
     class StringType = std::string,
     class BooleanType = bool,
-    class NumberIntegerType = int64_t,
-    class NumberUnsignedType = uint64_t,
+    class NumberIntegerType = std::int64_t,
+    class NumberUnsignedType = std::uint64_t,
     class NumberFloatType = double,
     template<typename U> class AllocatorType = std::allocator
     >