Skip to content

Commit

Permalink
Compiler fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
cr-marcstevens committed Nov 8, 2021
1 parent afca68c commit 9b10810
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/core.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 <contrib/string_algo.hpp>
namespace sa = string_algo;
Expand Down
2 changes: 1 addition & 1 deletion src/dblpbibtex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 1 addition & 4 deletions src/network.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@

#include "core.hpp"

extern "C"
{
#include <curl/curl.h>
}

#include <string>
#include <iostream>
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 9b10810

Please sign in to comment.