summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcah <cah@ableton.com>2024-03-22 11:15:34 +0100
committercah <cah@ableton.com>2024-03-22 11:15:34 +0100
commit861e3a89af2dcd3505bf3d7f7196ffb5b537330b (patch)
treeebbcd73da3026e520b16ae15d3b07a32b2dfa5eb
parent792dea6af89c725500eaafe669f67305a42ac1e4 (diff)
Don't redefine WIN32_LEAN_AND_MEAN if it's already defined.
-rw-r--r--src/KM_platform.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/KM_platform.h b/src/KM_platform.h
index 7994228..dfd3e4c 100644
--- a/src/KM_platform.h
+++ b/src/KM_platform.h
@@ -40,7 +40,9 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# endif
# ifdef KM_WIN32
-# define WIN32_LEAN_AND_MEAN
+# ifndef WIN32_LEAN_AND_MEAN
+# define WIN32_LEAN_AND_MEAN
+# endif
# define VC_EXTRALEAN
# include <windows.h>
# include <stdlib.h>