mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-08 14:40:07 +03:00
Merge pull request #44126 from eadwu/opencollada/resolve-pcre-declarations
opencollada: include pcre.h (KhronosGroup/OpenCOLLADA#570)
This commit is contained in:
commit
117680b0e9
@ -21,7 +21,9 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
patchPhase = lib.optionalString stdenv.isDarwin ''
|
patchPhase = ''
|
||||||
|
patch -p1 < ${./pcre.patch}
|
||||||
|
'' + lib.optionalString stdenv.isDarwin ''
|
||||||
substituteInPlace GeneratedSaxParser/src/GeneratedSaxParserUtils.cpp \
|
substituteInPlace GeneratedSaxParser/src/GeneratedSaxParserUtils.cpp \
|
||||||
--replace math.h cmath
|
--replace math.h cmath
|
||||||
'';
|
'';
|
||||||
|
14
pkgs/development/libraries/opencollada/pcre.patch
Normal file
14
pkgs/development/libraries/opencollada/pcre.patch
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
diff --git a/COLLADABaseUtils/include/COLLADABUPcreCompiledPattern.h b/COLLADABaseUtils/include/COLLADABUPcreCompiledPattern.h
|
||||||
|
index 22f2598b..269c50ca 100644
|
||||||
|
--- a/COLLADABaseUtils/include/COLLADABUPcreCompiledPattern.h
|
||||||
|
+++ b/COLLADABaseUtils/include/COLLADABUPcreCompiledPattern.h
|
||||||
|
@@ -13,8 +13,7 @@
|
||||||
|
|
||||||
|
#include "COLLADABUPrerequisites.h"
|
||||||
|
|
||||||
|
-struct real_pcre;
|
||||||
|
-typedef struct real_pcre pcre;
|
||||||
|
+#include "pcre.h"
|
||||||
|
|
||||||
|
|
||||||
|
namespace COLLADABU
|
Loading…
Reference in New Issue
Block a user