rapidjson: fix build
This commit is contained in:
parent
1a15402e74
commit
7b070f235c
|
@ -1,7 +1,7 @@
|
||||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||||
index ceda71b1..9fc52736 100644
|
index ceda71b1..9fc52736 100644
|
||||||
--- a/CMakeLists.txt
|
--- CMakeLists.txt
|
||||||
+++ b/CMakeLists.txt
|
+++ CMakeLists.txt
|
||||||
@@ -50,7 +50,7 @@ if(CCACHE_FOUND)
|
@@ -50,7 +50,7 @@ if(CCACHE_FOUND)
|
||||||
endif(CCACHE_FOUND)
|
endif(CCACHE_FOUND)
|
||||||
|
|
||||||
|
|
|
@ -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:
|
||||||
|
{
|
|
@ -1,9 +1,8 @@
|
||||||
# Template build file for 'rapidjson'.
|
# Template build file for 'rapidjson'.
|
||||||
pkgname=rapidjson
|
pkgname=rapidjson
|
||||||
version=1.1.0
|
version=1.1.0
|
||||||
revision=1
|
revision=2
|
||||||
build_style=cmake
|
build_style=cmake
|
||||||
patch_args="-Np1"
|
|
||||||
noarch=yes
|
noarch=yes
|
||||||
short_desc="A fast JSON parser/generator for C++ with both SAX/DOM style API"
|
short_desc="A fast JSON parser/generator for C++ with both SAX/DOM style API"
|
||||||
maintainer="Alexander Egorenkov <egorenar-dev@posteo.net>"
|
maintainer="Alexander Egorenkov <egorenar-dev@posteo.net>"
|
||||||
|
|
Loading…
Reference in New Issue