Skip to content

Commit

Permalink
[win64] commit a small fix, probably in the worst possible way, to ac…
Browse files Browse the repository at this point in the history
…count for the fact that LLONG_MAX and LLONG_MIN don't appear to be defined in 64-bit cl.exe

git-svn-id: https://svn.parrot.org/parrot/trunk@40157 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
  • Loading branch information
Whiteknight committed Jul 19, 2009
1 parent 6c188e4 commit 0b34e9b
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions config/gen/platform/generic/platform_limits.h
Expand Up @@ -9,10 +9,24 @@
/*
* Define the values for PARROT_INTVAL_MAX and PARROT_INTVAL_MIN
* in platforms that does no have limits.h or gives wrong values.
* The generic versions assumes limits.h availability,
* and does nothing.
* The generic versions assumes limits.h availability.
*/

/* LLONG_MAX doesn't appear to be provided for some compilers of Win64, so
try to define them here. */
#ifdef _MSC_VER
# ifndef LLONG_MAX
# ifdef _I64_MAX
# define LLONG_MAX _I64_MAX
# endif
# endif
# ifndef LLONG_MIN
# ifdef _I64_MIN
# define LLONG_MIN _I64_MIN
# endif
# endif
#endif

#endif /* PARROT_PLATFORM_GENERIC_PLATFORM_LIMITS_GUARD */

/*
Expand Down

0 comments on commit 0b34e9b

Please sign in to comment.