From 9a3a2b7da6d33183b8edc44ea303ab18898f41b9 Mon Sep 17 00:00:00 2001 From: Rico Tiongson Date: Fri, 15 Mar 2019 09:58:13 +0800 Subject: [PATCH] Have macro guard warning for version --- lib/index.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/index.hpp b/lib/index.hpp index b54cc3e..3ce48a6 100644 --- a/lib/index.hpp +++ b/lib/index.hpp @@ -28,6 +28,11 @@ along with this program. If not, see . #define __COMFORTABLE_SWIPE__CONFIG__ "/usr/local/share/comfortable-swipe/comfortable-swipe.conf" #endif /* __COMFORTABLE_SWIPE__CONFIG__ */ +#ifndef COMFORTABLE_SWIPE_VERSION +#warning COMFORTABLE_SWIPE_VERSION is not defined +#define COMFORTABLE_SWIPE_VERSION "v(UNKNOWN)" +#endif /* COMFORTABLE_SWIPE_VERSION */ + #include // std::map #include // std::string