Kaydet (Commit) ebcde8e4 authored tarafından David Ostrovsky's avatar David Ostrovsky Kaydeden (comit) Michael Stahl

Fix redland on MSVC 14.0

Change-Id: I1b51102bd4d5aa6b148c0cd7e191d01c72b6c1c9
Reviewed-on: https://gerrit.libreoffice.org/18214Reviewed-by: 's avatarMichael Stahl <mstahl@redhat.com>
Tested-by: 's avatarMichael Stahl <mstahl@redhat.com>
üst 4d841e5f
--- a/src/win32_rasqal_config.h Fri Jun 27 04:02:09 2008 diff -ru rasqal.orig/src/rasqal_digest_md5.c rasqal/src/rasqal_digest_md5.c
+++ b/src/win32_rasqal_config.h Thu Nov 6 12:07:06 2008 --- rasqal.orig/src/rasqal_digest_md5.c 2012-02-11 00:41:11.000000000 +0100
@@ -31,6 +31,7 @@ +++ rasqal/src/rasqal_digest_md5.c 2015-09-02 23:26:38.094184222 +0200
@@ -50,7 +50,6 @@
#include <stdio.h>
#include <string.h>
-#include <stdint.h>
#include <stdarg.h>
#include "rasqal.h"
diff -ru rasqal.orig/src/rasqal_digest_sha1.c rasqal/src/rasqal_digest_sha1.c
--- rasqal.orig/src/rasqal_digest_sha1.c 2012-02-16 06:54:24.000000000 +0100
+++ rasqal/src/rasqal_digest_sha1.c 2015-09-02 23:26:44.922184681 +0200
@@ -93,7 +93,6 @@
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
-#include <stdint.h>
#include "rasqal.h"
#include "rasqal_internal.h"
diff -ru rasqal.orig/src/rasqal_internal.h rasqal/src/rasqal_internal.h
--- rasqal.orig/src/rasqal_internal.h 2012-07-30 00:21:11.000000000 +0200
+++ rasqal/src/rasqal_internal.h 2015-09-02 23:26:50.240185038 +0200
@@ -26,6 +26,13 @@
#ifndef RASQAL_INTERNAL_H
#define RASQAL_INTERNAL_H
+#if defined(_MSC_VER) && _MSC_VER < 1600
+typedef unsigned __int32 uint32_t;
+typedef __int16 int16_t;
+#else
+#include <stdint.h>
+#endif
+
#ifdef __cplusplus
extern "C" {
#define RASQAL_EXTERN_C extern "C"
diff -ru rasqal.orig/src/win32_rasqal_config.h rasqal/src/win32_rasqal_config.h
--- rasqal.orig/src/win32_rasqal_config.h 2015-09-02 23:12:00.733125322 +0200
+++ rasqal/src/win32_rasqal_config.h 2015-09-02 23:28:10.152190403 +0200
@@ -31,17 +31,23 @@
#endif #endif
#define WIN32_LEAN_AND_MEAN 1 #define WIN32_LEAN_AND_MEAN 1
...@@ -8,7 +48,6 @@ ...@@ -8,7 +48,6 @@
/* getopt is not in standard win32 C library - define if we have it */ /* getopt is not in standard win32 C library - define if we have it */
/* #define HAVE_GETOPT_H 1 */ /* #define HAVE_GETOPT_H 1 */
@@ -37,10 +37,13 @@
#define HAVE_STDLIB_H 1 #define HAVE_STDLIB_H 1
...@@ -20,10 +59,13 @@ ...@@ -20,10 +59,13 @@
-#define vsnprintf _vsnprintf -#define vsnprintf _vsnprintf
+// next line breaks build on wntmsci12 +// next line breaks build on wntmsci12
+//#define vsnprintf _vsnprintf +//#define vsnprintf _vsnprintf
+#if _MSC_VER < 1900 // older than VC 2015
#define snprintf _snprintf #define snprintf _snprintf
+#endif
#define access _access #define access _access
#define stricmp _stricmp #define stricmp _stricmp
@@ -101,7 +102,6 @@ #define strnicmp _strnicmp
@@ -101,7 +107,6 @@
* Defines that come from config.h * Defines that come from config.h
*/ */
...@@ -31,13 +73,13 @@ ...@@ -31,13 +73,13 @@
#include <io.h> #include <io.h>
#include <memory.h> #include <memory.h>
@@ -116,8 +122,16 @@ @@ -149,7 +154,15 @@
/* #define RAPTOR_TRIPLES_SOURCE_REDLAND 1 */ /* #define RAPTOR_TRIPLES_SOURCE_REDLAND 1 */
/* Use PCRE regex library */ /* Use PCRE regex library */
-#define RASQAL_REGEX_PCRE 1 -#define RASQAL_REGEX_PCRE 1
+//#define RASQAL_REGEX_PCRE 1 +//#define RASQAL_REGEX_PCRE 1
+
+#define HAVE_LIBXML_SCHEMASINTERNALS_H 1 +#define HAVE_LIBXML_SCHEMASINTERNALS_H 1
+#define HAVE_LIBXML_XMLSCHEMASTYPES_H 1 +#define HAVE_LIBXML_XMLSCHEMASTYPES_H 1
+#define HAVE_LIBXML_XMLSCHEMAS_H 1 +#define HAVE_LIBXML_XMLSCHEMAS_H 1
...@@ -45,43 +87,7 @@ ...@@ -45,43 +87,7 @@
+#define RASQAL_DECIMAL_NONE 1 +#define RASQAL_DECIMAL_NONE 1
+#define RASQAL_UUID_INTERNAL 1 +#define RASQAL_UUID_INTERNAL 1
+#define RASQAL_DIGEST_INTERNAL 1 +#define RASQAL_DIGEST_INTERNAL 1
+
#ifdef _DEBUG #ifdef _DEBUG
#define RASQAL_DEBUG 1 #define RASQAL_DEBUG 1
#endif
--- a/src/rasqal_digest_md5.c 2013-04-01 00:18:47.913835564 +0200
+++ b/src/rasqal_digest_md5.c 2013-04-01 00:18:52.657835523 +0200
@@ -50,7 +50,6 @@
#include <stdio.h>
#include <string.h>
-#include <stdint.h>
#include <stdarg.h>
#include "rasqal.h"
--- a/src/rasqal_digest_sha1.c 2013-04-01 00:19:04.655835420 +0200
+++ b/src/rasqal_digest_sha1.c 2013-04-01 00:19:10.448835370 +0200
@@ -93,7 +93,6 @@
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
-#include <stdint.h>
#include "rasqal.h"
#include "rasqal_internal.h"
--- a/src/rasqal_internal.h 2013-04-01 00:18:11.090835880 +0200
+++ b/src/rasqal_internal.h 2013-04-01 00:18:13.610835859 +0200
@@ -26,6 +26,13 @@
#ifndef RASQAL_INTERNAL_H
#define RASQAL_INTERNAL_H
+#if defined(_MSC_VER) && _MSC_VER < 1600
+typedef unsigned __int32 uint32_t;
+typedef __int16 int16_t;
+#else
+#include <stdint.h>
+#endif
+
#ifdef __cplusplus
extern "C" {
#define RASQAL_EXTERN_C extern "C" #define RASQAL_EXTERN_C extern "C"
--- a/src/win32_rdf_config.h Tue Jul 1 05:10:26 2008 --- redland.orig/src/win32_rdf_config.h 2015-09-02 23:12:12.894126138 +0200
+++ b/src/win32_rdf_config.h Wed Feb 18 13:31:07 2009 +++ redland/src/win32_rdf_config.h 2015-09-02 23:23:54.600173246 +0200
@@ -43,7 +43,8 @@ @@ -43,8 +43,11 @@
#define HAVE_STRICMP 1 #define HAVE_STRICMP 1
/* MS names for these functions */ /* MS names for these functions */
-#define vsnprintf _vsnprintf -#define vsnprintf _vsnprintf
+// next line breaks build on wntmsci12 +// next line breaks build on wntmsci12
+//#define vsnprintf _vsnprintf +//#define vsnprintf _vsnprintf
+#if _MSC_VER < 1900 // older than VC 2015
#define snprintf _snprintf #define snprintf _snprintf
+#endif
#define access _access #define access _access
#define stricmp _stricmp #define stricmp _stricmp
@@ -72,40 +73,40 @@ #define strnicmp _strnicmp
@@ -75,40 +78,40 @@
*/ */
/* BDB has close method with 2 args */ /* BDB has close method with 2 args */
...@@ -61,7 +64,7 @@ ...@@ -61,7 +64,7 @@
/* Define to 1 if you have the <dlfcn.h> header file. */ /* Define to 1 if you have the <dlfcn.h> header file. */
/* undef HAVE_DLFCN_H */ /* undef HAVE_DLFCN_H */
@@ -141,13 +142,13 @@ @@ -141,13 +144,13 @@
/* #undef HAVE_LIBWWW */ /* #undef HAVE_LIBWWW */
/* Have local MD5 digest */ /* Have local MD5 digest */
...@@ -77,7 +80,7 @@ ...@@ -77,7 +80,7 @@
/* Define to 1 if you have the <memory.h> header file. */ /* Define to 1 if you have the <memory.h> header file. */
#define HAVE_MEMORY_H 1 #define HAVE_MEMORY_H 1
@@ -159,25 +160,28 @@ @@ -159,7 +162,7 @@
#define HAVE_MKTEMP 1 #define HAVE_MKTEMP 1
/* MySQL libraries are present */ /* MySQL libraries are present */
...@@ -86,18 +89,7 @@ ...@@ -86,18 +89,7 @@
/* Define to 1 if you have the <openssl/crypto.h> header file. */ /* Define to 1 if you have the <openssl/crypto.h> header file. */
/* #undef HAVE_OPENSSL_CRYPTO_H */ /* #undef HAVE_OPENSSL_CRYPTO_H */
@@ -178,6 +181,9 @@
/* Have openssl MD5 digest */
/* #undef HAVE_OPENSSL_CRYPTO_MD5_DIGEST */
/* Have openssl RIPEMD160 digest */
/* #undef HAVE_OPENSSL_CRYPTO_RIPEMD160_DIGEST */
/* Have openssl SHA1 digest */
/* #undef HAVE_OPENSSL_CRYPTO_SHA1_DIGEST */
/* Have openssl digests */
/* #undef HAVE_OPENSSL_DIGESTS */
/* Define to 1 if you have the <pthread.h> header file. */ /* Define to 1 if you have the <pthread.h> header file. */
/* #undef HAVE_PTHREAD_H */ /* #undef HAVE_PTHREAD_H */
...@@ -107,7 +99,7 @@ ...@@ -107,7 +99,7 @@
/* Define to 1 if you have the <stdint.h> header file. */ /* Define to 1 if you have the <stdint.h> header file. */
#define HAVE_STDINT_H 1 #define HAVE_STDINT_H 1
@@ -246,7 +255,7 @@ @@ -246,7 +252,7 @@
#define SIZEOF_UNSIGNED_LONG_LONG 8 #define SIZEOF_UNSIGNED_LONG_LONG 8
/* SQLite API version */ /* SQLite API version */
...@@ -116,7 +108,7 @@ ...@@ -116,7 +108,7 @@
/* Define to 1 if you have the ANSI C header files. */ /* Define to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1 #define STDC_HEADERS 1
@@ -254,14 +263,17 @@ @@ -254,6 +260,9 @@
/* Building file storage */ /* Building file storage */
#define STORAGE_FILE 1 #define STORAGE_FILE 1
...@@ -126,7 +118,7 @@ ...@@ -126,7 +118,7 @@
/* Building MySQL storage */ /* Building MySQL storage */
/* #define STORAGE_MYSQL 1 */ /* #define STORAGE_MYSQL 1 */
/* Building PostgreSQL storage */ @@ -261,7 +270,7 @@
/*#undef STORAGE_POSTGRESQL*/ /*#undef STORAGE_POSTGRESQL*/
/* Building SQLite storage */ /* Building SQLite storage */
...@@ -135,7 +127,7 @@ ...@@ -135,7 +127,7 @@
/* Building 3store storage */ /* Building 3store storage */
/*#undef STORAGE_TSTORE*/ /*#undef STORAGE_TSTORE*/
@@ -273,7 +273,7 @@ @@ -273,7 +282,7 @@
#define VERSION "1.0.16" #define VERSION "1.0.16"
/* Use POSIX threads */ /* Use POSIX threads */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment