Skip to content

Commit

Permalink
Manually define PTRDIFF_MAX for VS C compiler.
Browse files Browse the repository at this point in the history
  • Loading branch information
xitology committed Feb 4, 2014
1 parent 1ef1171 commit 303b455
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/yaml_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,16 @@
#include <assert.h>
#include <limits.h>
#include <stddef.h>

#ifndef _MSC_VER
#include <stdint.h>
#else
#ifdef _WIN64
#define PTRDIFF_MAX _I64_MAX
#else
#define PTRDIFF_MAX INT_MAX
#endif
#endif

/*
* Memory management.
Expand Down

0 comments on commit 303b455

Please sign in to comment.