Description: Fix FTBFS with libsqlite3-dev 3.19.3-3
Author: Sebastien Jodogne <s.jodogne@gmail.com>
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: OrthancWebViewer-2.2/Orthanc/Core/SQLite/FunctionContext.cpp
===================================================================
--- OrthancWebViewer-2.2.orig/Orthanc/Core/SQLite/FunctionContext.cpp
+++ OrthancWebViewer-2.2/Orthanc/Core/SQLite/FunctionContext.cpp
@@ -49,7 +49,7 @@ namespace Orthanc
   {
     FunctionContext::FunctionContext(struct sqlite3_context* context,
                                      int argc,
-                                     struct ::Mem** argv)
+                                     struct sqlite3_value** argv)
     {
       assert(context != NULL);
       assert(argc >= 0);
Index: OrthancWebViewer-2.2/Orthanc/Core/SQLite/FunctionContext.h
===================================================================
--- OrthancWebViewer-2.2.orig/Orthanc/Core/SQLite/FunctionContext.h
+++ OrthancWebViewer-2.2/Orthanc/Core/SQLite/FunctionContext.h
@@ -37,7 +37,7 @@
 #include "Statement.h"
 
 struct sqlite3_context;
-struct Mem;  // This corresponds to the opaque type "sqlite3_value"
+struct sqlite3_value;
  
 namespace Orthanc
 {
@@ -50,14 +50,14 @@ namespace Orthanc
     private:
       struct sqlite3_context* context_;
       unsigned int argc_;
-      struct ::Mem** argv_;
+      struct sqlite3_value** argv_;
 
       void CheckIndex(unsigned int index) const;
 
     public:
       FunctionContext(struct sqlite3_context* context,
                       int argc,
-                      struct ::Mem** argv);
+                      struct sqlite3_value** argv);
 
       ColumnType GetColumnType(unsigned int index) const;
  
