Skip to content
Snippets Groups Projects
Commit 76e5ce9c77cc authored by Kirill Simonov's avatar Kirill Simonov
Browse files

Manually define PTRDIFF_MAX for VS C compiler.

parent b85628bd83e7
No related branches found
No related tags found
No related merge requests found
......@@ -8,4 +8,6 @@
#include <assert.h>
#include <limits.h>
#include <stddef.h>
#ifndef _MSC_VER
#include <stdint.h>
......@@ -11,4 +13,11 @@
#include <stdint.h>
#else
#ifdef _WIN64
#define PTRDIFF_MAX _I64_MAX
#else
#define PTRDIFF_MAX INT_MAX
#endif
#endif
/*
* Memory management.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment