build fix
[LibreOffice.git] / external / redland / rasqal / rasqal-msvc.patch.1
blob79fce7a8dc5ec3770e6aa38c90c34650dc16dd89
1 diff -ru rasqal.orig/src/win32_rasqal_config.h rasqal/src/win32_rasqal_config.h
2 --- rasqal.orig/src/win32_rasqal_config.h       2015-09-02 23:12:00.733125322 +0200
3 +++ rasqal/src/win32_rasqal_config.h    2015-09-02 23:28:10.152190403 +0200
4 @@ -31,7 +31,9 @@
5  /* MS names for these functions */
6  // next line breaks build on wntmsci12
7  //#define vsnprintf _vsnprintf
8 +#if _MSC_VER < 1900 // older than VC 2015
9  #define snprintf _snprintf
10 +#endif
11  #define access _access
12  #define stricmp _stricmp
13  #define strnicmp _strnicmp
14 --- rasqal/src/rasqal_ntriples.c.orig   2016-08-26 23:29:58.343472683 +0200
15 +++ rasqal/src/rasqal_ntriples.c        2016-08-26 23:30:10.553471736 +0200
16 @@ -25,6 +25,10 @@
17  #include <rasqal_config.h>
18  #endif
20 +#ifdef WIN32
21 +#include <win32_rasqal_config.h>
22 +#endif
24  #include <stdio.h>
25  #include <string.h>
26  #include <ctype.h>
27 --- rasqal/src/sv_config.h.orig 2016-08-26 23:29:42.408473919 +0200
28 +++ rasqal/src/sv_config.h      2016-08-26 23:29:44.760473737 +0200
29 @@ -29,7 +29,11 @@
30  extern "C" {
31  #endif
33 +#ifdef WIN32
34 +#include <win32_rasqal_config.h>
35 +#else
36  #include <rasqal_config.h>
37 +#endif
39  #define sv_new rasqal_sv_new
40  #define sv_free rasqal_sv_free
41 --- rasqal/src/rasqal.h.in.orig 2016-08-26 23:42:23.198414915 +0200
42 +++ rasqal/src/rasqal.h.in      2016-08-26 23:42:34.627414028 +0200
43 @@ -1473,7 +1473,7 @@
45  RASQAL_API
46  int rasqal_query_results_formats_check2(rasqal_world* world, const char *name, raptor_uri* uri, const char *mime_type, int flags);
47 -RASQAL_API RASQAL_API RASQAL_DEPRECATED
48 +RASQAL_API RASQAL_DEPRECATED
49  int rasqal_query_results_formats_check(rasqal_world* world, const char *name, raptor_uri* uri, const char *mime_type, int flags);
50  RASQAL_API
51  rasqal_query_results_formatter* rasqal_new_query_results_formatter(rasqal_world* world, const char *name, const char *mime_type, raptor_uri* format_uri);