From 9b108106679e687ef0da6a554b40b665300f819c Mon Sep 17 00:00:00 2001 From: cr-marcstevens Date: Mon, 8 Nov 2021 08:41:19 +0100 Subject: [PATCH] Compiler fixes. --- src/core.hpp | 2 +- src/dblpbibtex.cpp | 2 +- src/network.hpp | 5 +---- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/core.hpp b/src/core.hpp index 2a14d29..7657b70 100644 --- a/src/core.hpp +++ b/src/core.hpp @@ -18,7 +18,7 @@ //#define USE_CURL_FORM // use for old versions of curl that doesn't have curl_mime yet -#define VERSION "2.3" +#define DBLPBIBTEX_VERSION "2.3" #include namespace sa = string_algo; diff --git a/src/dblpbibtex.cpp b/src/dblpbibtex.cpp index b237b3c..b063f45 100644 --- a/src/dblpbibtex.cpp +++ b/src/dblpbibtex.cpp @@ -119,7 +119,7 @@ try { #endif // needs to be enabled inside tex file with \nocite{dblpbibtex:enablesearch} // searches change your tex files, use with care! - cout << "DBLPBibTeX - version " << VERSION << " - Copyright Marc Stevens 2010-2019" << endl + cout << "DBLPBibTeX - version " << DBLPBIBTEX_VERSION << " - Copyright Marc Stevens 2010-2019" << endl << "Projectpage: https://github.com/cr-marcstevens/dblpbibtex/" << endl; params.enablesearch = false; std::string dblpformat; diff --git a/src/network.hpp b/src/network.hpp index 0c9b4fe..6994810 100644 --- a/src/network.hpp +++ b/src/network.hpp @@ -8,10 +8,7 @@ #include "core.hpp" -extern "C" -{ #include -} #include #include @@ -153,7 +150,7 @@ void check_new_version() html.erase(html.find_first_not_of(".0123456789")); if (version == "") std::cout << "New version check failed!" << std::endl; - else if (version != VERSION) + else if (version != DBLPBIBTEX_VERSION) std::cout << "Warning--New version " << version << " is available on:" << std::endl << "\thttps://github.com/cr-marcstevens/dblpbibtex/" << std::endl; }