diff options
author | Karl Berry <karl@freefriends.org> | 2019-08-10 16:06:35 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-08-10 16:06:35 +0000 |
commit | bbb53f06c6f48d4c675d250829032e09f4065a86 (patch) | |
tree | 0583c905a5d67f3e1447456048b2e479311e4e83 /Build/source/utils/asymptote/common.h | |
parent | efd1dbbaa1332a9534c25024a0c295f423714851 (diff) |
asy 2.52 sources
git-svn-id: svn://tug.org/texlive/trunk@51856 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/common.h')
-rw-r--r-- | Build/source/utils/asymptote/common.h | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/Build/source/utils/asymptote/common.h b/Build/source/utils/asymptote/common.h index 963d126f781..541a43d3cee 100644 --- a/Build/source/utils/asymptote/common.h +++ b/Build/source/utils/asymptote/common.h @@ -12,19 +12,12 @@ #include <iostream> #include <climits> -#ifdef __CYGWIN__ -#undef LONG_LONG_MAX -#define LONG_LONG_MAX __LONG_LONG_MAX__ -#undef LONG_LONG_MIN -#define LONG_LONG_MIN (-LONG_LONG_MAX-1) -#endif - #ifdef HAVE_CONFIG_H #include "config.h" #endif #if !defined(FOR_SHARED) && \ - ((defined(HAVE_LIBGL) && defined(HAVE_LIBGLUT) && defined(HAVE_LIBGLEW) && defined(HAVE_LIBGLM)) || defined(HAVE_LIBOSMESA)) + ((defined(HAVE_LIBGL) && defined(HAVE_LIBGLUT) && defined(HAVE_LIBGLM)) || defined(HAVE_LIBOSMESA)) #define HAVE_GL #endif @@ -34,9 +27,9 @@ #include "memory.h" -#if defined(HAVE_LONG_LONG) && defined(LONG_LONG_MAX) && defined(LONG_LONG_MIN) -#define Int_MAX2 LONG_LONG_MAX -#define Int_MIN LONG_LONG_MIN +#if defined(HAVE_LONG_LONG) && defined(LLONG_MAX) && defined(LLONG_MIN) +#define Int_MAX2 LLONG_MAX +#define Int_MIN LLONG_MIN typedef long long Int; typedef unsigned long long unsignedInt; #else @@ -73,7 +66,9 @@ typedef unsigned int unsignedInt; #define int_MIN LONG_MIN +#ifndef RANDOM_MAX #define RANDOM_MAX 0x7FFFFFFF +#endif using std::cout; using std::cin; |