Skip to content

Commit

Permalink
Merge pull request #44126 from eadwu/opencollada/resolve-pcre-declara…
Browse files Browse the repository at this point in the history
…tions

opencollada: include pcre.h (KhronosGroup/OpenCOLLADA#570)
  • Loading branch information
matthewbauer authored Aug 2, 2018
2 parents 405cc5b + 6f62bf3 commit 117680b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkgs/development/libraries/opencollada/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ stdenv.mkDerivation rec {

enableParallelBuilding = true;

patchPhase = lib.optionalString stdenv.isDarwin ''
patchPhase = ''
patch -p1 < ${./pcre.patch}
'' + lib.optionalString stdenv.isDarwin ''
substituteInPlace GeneratedSaxParser/src/GeneratedSaxParserUtils.cpp \
--replace math.h cmath
'';
Expand Down
14 changes: 14 additions & 0 deletions pkgs/development/libraries/opencollada/pcre.patch
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 117680b

Please sign in to comment.