Created
November 3, 2019 13:23
-
-
Save antisvin/41ebf8c35e06d42bf9519d55e9bacbf1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/LibSource/Patch.h b/LibSource/Patch.h | |
index 905ad26..0c7cea8 100644 | |
--- a/LibSource/Patch.h | |
+++ b/LibSource/Patch.h | |
@@ -15,6 +15,9 @@ | |
#include "MidiMessage.h" | |
#endif /* USE_MIDI_CALLBACK */ | |
+#undef min | |
+#undef max | |
+ | |
enum PatchChannelId { | |
LEFT_CHANNEL = 0, | |
RIGHT_CHANNEL = 1 | |
diff --git a/Source/PatchProgram.cpp b/Source/PatchProgram.cpp | |
index d3be97a..f7f443c 100644 | |
--- a/Source/PatchProgram.cpp | |
+++ b/Source/PatchProgram.cpp | |
@@ -1,4 +1,6 @@ | |
-#include <string> /* include this here to avoid errors with std::min/std::max later */ | |
+#include <string> | |
+#include <algorithm> | |
+/* include this here to avoid errors with std::min/std::max later */ | |
#include "ProgramVector.h" | |
#include "ServiceCall.h" | |
#include "SampleBuffer.hpp" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment