Skip to content

Commit

Permalink
Make sure opencsg.h is included for version number reporting (fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
t-paul committed Jan 5, 2021
1 parent 2f3df8e commit cd58336
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/LibraryInfo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,15 @@
#define LIBZIP_VERSION "<not enabled>"
#endif

#ifdef ENABLE_OPENCSG
#include <opencsg.h>
#ifndef OPENCSG_VERSION_STRING
#define OPENCSG_VERSION_STRING "unknown, < 1.3.2"
#endif
#else
#define OPENCSG_VERSION_STRING "<not enabled>"
#endif

extern std::vector<std::string> librarypath;
extern std::vector<std::string> fontpath;
extern const std::string get_cairo_version();
Expand Down Expand Up @@ -78,10 +87,6 @@ std::string LibraryInfo::info()
std::string debugstatus("No");
#endif

#ifndef OPENCSG_VERSION_STRING
#define OPENCSG_VERSION_STRING "unknown, <1.3.2"
#endif

#ifdef QT_VERSION
std::string qtVersion = qVersion();
#else
Expand Down

0 comments on commit cd58336

Please sign in to comment.