Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ limitations under the License.
typedef unsigned __int64 uint64_t;
typedef __int64 int64_t;
#else
#if __cplusplus >= 201103L
#if (__cplusplus >= 201103L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 201103L)
// C++11 or later
#include <cstdint>
#include <cstddef>
Expand All @@ -45,10 +45,10 @@ limitations under the License.
#define snprintf _snprintf
#endif

#if !defined(__x86_64__)
#if defined(_M_X64) && !defined(__x86_64__)
#define __x86_64__ _M_X64
#endif
#if !defined(__i386__)
#if defined(_M_IX86) && !defined(__i386__)
#define __i386__ _M_IX86
#endif
#endif
Expand Down Expand Up @@ -206,7 +206,7 @@ limitations under the License.

namespace kanzi
{
#if __cplusplus >= 201703L
#if (__cplusplus >= 201703L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 201703L)
using byte = std::byte;
#else
typedef uint8_t byte;
Expand Down