summaryrefslogtreecommitdiff
path: root/src/include/target_version.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/target_version.hpp')
-rw-r--r--src/include/target_version.hpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/include/target_version.hpp b/src/include/target_version.hpp
index dddf69e4..07528276 100644
--- a/src/include/target_version.hpp
+++ b/src/include/target_version.hpp
@@ -7,5 +7,13 @@
*/
#pragma once
-#define TARGETVER_1_19 true
-#define TARGETVER_1_29 true
+enum class TargetVersion {
+ Rustc1_19,
+ Rustc1_29,
+};
+
+// Defined in main.cpp
+extern TargetVersion gTargetVersion;
+
+#define TARGETVER_1_19 (gTargetVersion == TargetVersion::Rustc1_19)
+#define TARGETVER_1_29 (gTargetVersion == TargetVersion::Rustc1_29)