Skip to content

Commit d91e8ae

Browse files
committed
[rapidxml] Fix error C2059
1 parent 37c22a2 commit d91e8ae

File tree

5 files changed

+22
-2
lines changed

5 files changed

+22
-2
lines changed

ports/rapidxml/msvc-alloc_func.diff

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
diff --git a/rapidxml.hpp b/rapidxml.hpp
2+
index ae91e08..853bc36 100644
3+
--- a/rapidxml.hpp
4+
+++ b/rapidxml.hpp
5+
@@ -382,7 +382,7 @@ namespace rapidxml
6+
public:
7+
8+
//! \cond internal
9+
- typedef void *(alloc_func)(std::size_t); // Type of user-defined function used to allocate memory
10+
- typedef void (free_func)(void *); // Type of user-defined function used to free memory
11+
+ typedef void * alloc_func(std::size_t); // Type of user-defined function used to allocate memory
12+
+ typedef void free_func(void *); // Type of user-defined function used to free memory
13+
//! \endcond
14+

ports/rapidxml/portfile.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ vcpkg_from_sourceforge(
77
SHA512 6c10583e6631ccdb0217d0a5381172cb4c1046226de6ef1acf398d85e81d145228e14c3016aefcd7b70a1db8631505b048d8b4f5d4b0dbf1811d2482eefdd265
88
PATCHES
99
0001-fix-for-a-bug-in-gcc-that-won-t-let-rapidxml-compile.patch # https://sourceforge.net/p/rapidxml/bugs/16/
10+
msvc-alloc_func.diff # rapidxml.hpp(385): error C2059: syntax error: '<parameter-list>'
1011
)
1112

1213
# Handle copyright

ports/rapidxml/vcpkg.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "rapidxml",
33
"version": "1.13",
4-
"port-version": 7,
4+
"port-version": 8,
55
"description": "RapidXml is an attempt to create the fastest XML parser possible, while retaining useability, portability and reasonable W3C compatibility.",
66
"homepage": "https://sourceforge.net/projects/rapidxml"
77
}

versions/baseline.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8250,7 +8250,7 @@
82508250
},
82518251
"rapidxml": {
82528252
"baseline": "1.13",
8253-
"port-version": 7
8253+
"port-version": 8
82548254
},
82558255
"rapidxml-ns": {
82568256
"baseline": "1.13.2",

versions/r-/rapidxml.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
22
"versions": [
3+
{
4+
"git-tree": "e4750ae1b5fc6071489c472c82474c0394034ac9",
5+
"version": "1.13",
6+
"port-version": 8
7+
},
38
{
49
"git-tree": "465505477fa97594a58e69f34a0c1a7fdccd9c59",
510
"version": "1.13",

0 commit comments

Comments
 (0)