rapidjson: fix build

This commit is contained in:
newbluemoon 2018-01-13 22:25:26 +01:00 committed by Leаh Neukirchen
parent 1a15402e74
commit 7b070f235c
3 changed files with 32 additions and 4 deletions

View file

@ -1,7 +1,7 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ceda71b1..9fc52736 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -50,7 +50,7 @@ if(CCACHE_FOUND)
endif(CCACHE_FOUND)

View file

@ -0,0 +1,29 @@
--- include/rapidjson/internal/regex.h.orig 2016-08-25 09:59:05.000000000 +0200
+++ include/rapidjson/internal/regex.h 2018-01-13 21:51:33.959472047 +0100
@@ -300,7 +300,7 @@
case '\\': // Escape character
if (!CharacterEscape(ds, &codepoint))
return; // Unsupported escape character
- // fall through to default
+ // fall-through
default: // Pattern character
PushOperand(operandStack, codepoint);
@@ -534,7 +534,7 @@
}
else if (!CharacterEscape(ds, &codepoint))
return false;
- // fall through to default
+ // fall-through
default:
switch (step) {
@@ -543,7 +543,7 @@
step++;
break;
}
- // fall through to step 0 for other characters
+ // fall-through
case 0:
{

View file

@ -1,9 +1,8 @@
# Template build file for 'rapidjson'.
pkgname=rapidjson
version=1.1.0
revision=1
revision=2
build_style=cmake
patch_args="-Np1"
noarch=yes
short_desc="A fast JSON parser/generator for C++ with both SAX/DOM style API"
maintainer="Alexander Egorenkov <egorenar-dev@posteo.net>"