summaryrefslogtreecommitdiffstats
path: root/Utilities/cmliblzma/common/tuklib_integer.h
diff options
context:
space:
mode:
Diffstat (limited to 'Utilities/cmliblzma/common/tuklib_integer.h')
-rw-r--r--Utilities/cmliblzma/common/tuklib_integer.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/Utilities/cmliblzma/common/tuklib_integer.h b/Utilities/cmliblzma/common/tuklib_integer.h
index e6daa77..1897438 100644
--- a/Utilities/cmliblzma/common/tuklib_integer.h
+++ b/Utilities/cmliblzma/common/tuklib_integer.h
@@ -41,7 +41,15 @@
#ifndef TUKLIB_INTEGER_H
#define TUKLIB_INTEGER_H
-#include "tuklib_common.h"
+#include "sysdefs.h"
+
+#if defined(__GNUC__) && defined(__GNUC_MINOR__)
+# define TUKLIB_GNUC_REQ(major, minor) \
+ ((__GNUC__ == (major) && __GNUC_MINOR__ >= (minor)) \
+ || __GNUC__ > (major))
+#else
+# define TUKLIB_GNUC_REQ(major, minor) 0
+#endif
////////////////////////////////////////