[tracker] libtracker-data: Fix content of parser version file



commit 9bd67e2689a7dc85bb842cda101ced7e41054766
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu Aug 30 17:43:07 2018 +0200

    libtracker-data: Fix content of parser version file
    
    The preprocessor magic to convert the version number to a string
    was missing some fairy dust. This avoids ending up with the literal
    TRACKER_PARSER_VERSION string there.

 src/libtracker-data/tracker-db-manager.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-data/tracker-db-manager.c b/src/libtracker-data/tracker-db-manager.c
index 9744481f8..9f30fe0ae 100644
--- a/src/libtracker-data/tracker-db-manager.c
+++ b/src/libtracker-data/tracker-db-manager.c
@@ -71,8 +71,9 @@
 
 #define PARSER_VERSION_FILENAME       "parser-version.txt"
 
-#define TOSTR(x) #x
-#define TRACKER_PARSER_VERSION_STRING TOSTR(TRACKER_PARSER_VERSION)
+#define TOSTRING1(x) #x
+#define TOSTRING(x) TOSTRING1(x)
+#define TRACKER_PARSER_VERSION_STRING TOSTRING(TRACKER_PARSER_VERSION)
 
 typedef enum {
        TRACKER_DB_VERSION_UNKNOWN, /* Unknown */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]