Skip to content

Instantly share code, notes, and snippets.

@antisvin
Created November 3, 2019 13:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antisvin/41ebf8c35e06d42bf9519d55e9bacbf1 to your computer and use it in GitHub Desktop.
Save antisvin/41ebf8c35e06d42bf9519d55e9bacbf1 to your computer and use it in GitHub Desktop.
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