Mercurial > hg > orthanc-databases
diff Framework/Plugins/IndexUnitTests.h @ 273:07881ac5404b
fix build against system-wide orthanc framework
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 22 Apr 2021 14:53:52 +0200 |
parents | cc7af42d4f23 |
children | 6d4d413a8797 |
line wrap: on
line diff
--- a/Framework/Plugins/IndexUnitTests.h Thu Apr 22 14:09:46 2021 +0200 +++ b/Framework/Plugins/IndexUnitTests.h Thu Apr 22 14:53:52 2021 +0200 @@ -32,6 +32,11 @@ #include <gtest/gtest.h> #include <list> +#if !defined(ORTHANC_DATABASE_VERSION) +// This happens if using the Orthanc framework system-wide library +# define ORTHANC_DATABASE_VERSION 6 +#endif + #if ORTHANC_ENABLE_POSTGRESQL == 1 # define HAS_REVISIONS 1