mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-14 06:28:00 +08:00
[magnum-plugins] Fix file conflict with stb (#12458)
This commit is contained in:
parent
44a5a4f4f2
commit
c0d7b3970c
13
ports/magnum-plugins/002-fix-stb-conflict.patch
Normal file
13
ports/magnum-plugins/002-fix-stb-conflict.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/src/MagnumPlugins/StbImageImporter/StbImageImporter.cpp b/src/MagnumPlugins/StbImageImporter/StbImageImporter.cpp
|
||||
index c24a968..1a38162 100644
|
||||
--- a/src/MagnumPlugins/StbImageImporter/StbImageImporter.cpp
|
||||
+++ b/src/MagnumPlugins/StbImageImporter/StbImageImporter.cpp
|
||||
@@ -45,7 +45,7 @@
|
||||
#endif
|
||||
|
||||
/* Not defining malloc/free, because there's no equivalent for realloc in C++ */
|
||||
-#include "stb_image.h"
|
||||
+#include "external/stb/stb_image.h"
|
||||
|
||||
namespace Magnum { namespace Trade {
|
||||
|
@ -1,5 +1,6 @@
|
||||
Source: magnum-plugins
|
||||
Version: 2020.06
|
||||
Port-Version: 1
|
||||
Build-Depends: magnum[core]
|
||||
Description: Plugins for magnum, C++11/C++14 graphics middleware for games and data visualization
|
||||
Homepage: https://magnum.graphics/
|
||||
|
@ -6,6 +6,7 @@ vcpkg_from_github(
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
001-tools-path.patch
|
||||
002-fix-stb-conflict.patch
|
||||
)
|
||||
|
||||
if("basisimporter" IN_LIST FEATURES OR "basisimageconverter" IN_LIST FEATURES)
|
||||
|
Loading…
x
Reference in New Issue
Block a user