- added patch

git-svn-id: http://moon:8086/svn/software/trunk/projects/Rbm@690 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
2019-11-21 21:20:59 +00:00
parent 7cc979241c
commit 0ee838360c
2 changed files with 26 additions and 1 deletions
+23
View File
@@ -0,0 +1,23 @@
diff -ruN temp/JUCE-3.1.1/modules/juce_graphics/colour/juce_PixelFormats.h ./JUCE-3.1.1/modules/juce_graphics/colour/juce_PixelFormats.h
--- temp/JUCE-3.1.1/modules/juce_graphics/colour/juce_PixelFormats.h 2014-12-16 18:21:34.000000000 +0100
+++ ./JUCE-3.1.1/modules/juce_graphics/colour/juce_PixelFormats.h 2019-11-21 22:19:22.278775419 +0100
@@ -86,19 +86,6 @@
forcedinline uint8 getGreen() const noexcept { return components.g; }
forcedinline uint8 getBlue() const noexcept { return components.b; }
- #if JUCE_GCC && ! JUCE_CLANG
- // NB these are here as a workaround because GCC refuses to bind to packed values.
- forcedinline uint8& getAlpha() noexcept { return comps [indexA]; }
- forcedinline uint8& getRed() noexcept { return comps [indexR]; }
- forcedinline uint8& getGreen() noexcept { return comps [indexG]; }
- forcedinline uint8& getBlue() noexcept { return comps [indexB]; }
- #else
- forcedinline uint8& getAlpha() noexcept { return components.a; }
- forcedinline uint8& getRed() noexcept { return components.r; }
- forcedinline uint8& getGreen() noexcept { return components.g; }
- forcedinline uint8& getBlue() noexcept { return components.b; }
- #endif
-
/** Blends another pixel onto this one.
This takes into account the opacity of the pixel being overlaid, and blends
+3 -1
View File
@@ -30,7 +30,9 @@ ${BUILD_DIR}/libjuce.a: ${OBJS}
${PKG_ROOT}:
unzip ${PKG_VER}.zip
patch -t -p0 < ${PKG_VER}.patch
if [ -e ${PKG_VER}.patch ]; then \
patch -s -p0 < ${PKG_VER}.patch;\
fi
clean:
rm -rf ${BUILD_DIR}/*