Don't redefine WIN32_LEAN_AND_MEAN if it's already defined.
authorcah <cah@ableton.com>
Fri, 22 Mar 2024 10:15:34 +0000 (11:15 +0100)
committercah <cah@ableton.com>
Fri, 22 Mar 2024 10:15:34 +0000 (11:15 +0100)
src/KM_platform.h

index 7994228c66745a73f331d75f15c624ec364f4669..dfd3e4c4b2bb283451f159823927e1850860bbcb 100644 (file)
@@ -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>