diff OrthancServer/Sources/Search/DatabaseConstraint.cpp @ 4096:d633e5bb7ba3

reusing of ISqlLookupFormatter and DatabaseConstraint in orthanc-databases project
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 01 Jul 2020 08:42:21 +0200
parents 05b8fd21089c
children 50b0c69b653a
line wrap: on
line diff
--- a/OrthancServer/Sources/Search/DatabaseConstraint.cpp	Tue Jun 30 17:00:18 2020 +0200
+++ b/OrthancServer/Sources/Search/DatabaseConstraint.cpp	Wed Jul 01 08:42:21 2020 +0200
@@ -31,11 +31,21 @@
  **/
 
 
-#include "../PrecompiledHeadersServer.h"
+#if !defined(ORTHANC_BUILDING_SERVER_LIBRARY)
+#  error Macro ORTHANC_BUILDING_SERVER_LIBRARY must be defined
+#endif
+
+#if ORTHANC_BUILDING_SERVER_LIBRARY == 1
+#  include "../PrecompiledHeadersServer.h"
+#endif
+
 #include "DatabaseConstraint.h"
 
-#include "../../../OrthancFramework/Sources/OrthancException.h"
-
+#if ORTHANC_BUILDING_SERVER_LIBRARY == 1
+#  include "../../../OrthancFramework/Sources/OrthancException.h"
+#else
+#  include <OrthancException.h>
+#endif
 
 namespace Orthanc
 {