summaryrefslogtreecommitdiff
path: root/src/localconsts.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-06-30 13:08:45 +0300
committerAndrei Karas <akaras@inbox.ru>2017-06-30 13:08:45 +0300
commit38419eeb9df6a8778c292e219a3667bd5ebd4680 (patch)
treea980d318b2db1d771def689d6fc2856f870b95ff /src/localconsts.h
parent20ac8001a989426d919f24fe663319f1b0bd1625 (diff)
downloadmv-38419eeb9df6a8778c292e219a3667bd5ebd4680.tar.gz
mv-38419eeb9df6a8778c292e219a3667bd5ebd4680.tar.bz2
mv-38419eeb9df6a8778c292e219a3667bd5ebd4680.tar.xz
mv-38419eeb9df6a8778c292e219a3667bd5ebd4680.zip
Dont redefine GCC_VERSION macro.
Diffstat (limited to 'src/localconsts.h')
-rw-r--r--src/localconsts.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/localconsts.h b/src/localconsts.h
index e416924fe..64db7f7fb 100644
--- a/src/localconsts.h
+++ b/src/localconsts.h
@@ -23,14 +23,18 @@
#define ENABLEDEBUGLOG 1
+#ifndef GCC_VERSION
#define GCC_VERSION (__GNUC__ * 10000 \
+ __GNUC_MINOR__ * 100 \
+ __GNUC_PATCHLEVEL__)
+#endif // GCC_VERSION
#ifdef __clang__
+#ifndef CLANG_VERSION
#define CLANG_VERSION (__clang_major__ * 10000 \
+ __clang_minor__ * 100 \
+ __clang_patchlevel__)
+#endif // CLANG_VERSION
#endif // __clang__
#define A_DEFAULT_COPY(func)