summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/utils/asymptote/common.h')
-rw-r--r--Build/source/utils/asymptote/common.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/Build/source/utils/asymptote/common.h b/Build/source/utils/asymptote/common.h
index 347e7cd1b8d..16b9d57d567 100644
--- a/Build/source/utils/asymptote/common.h
+++ b/Build/source/utils/asymptote/common.h
@@ -10,12 +10,19 @@
#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(HAVE_LIBGLU) && defined(HAVE_LIBGLUT)
-#define HAVE_LIBGL
+#if defined(HAVE_LIBGL) && defined(HAVE_LIBGLU) && defined(HAVE_LIBGLUT)
+#define HAVE_GL
#endif
#ifdef HAVE_LIBPTHREAD