justinfrankel / WDL

WDL (by Cockos) mirror
http://www.cockos.com/wdl
418 stars 57 forks source link

SWELL: fix build with WDL_NO_DEFINE_MINMAX defined #2

Closed cfillion closed 7 years ago

cfillion commented 8 years ago

Building with WDL_NO_DEFINE_MINMAX defined on OSX is broken since ce641d4f5b0de0b20daf254998b55a0ec1a20c93 because it tries to use the min macro which is undeclared.

This commit fixes this by using wdl_min instead.

Using WDL_NO_DEFINE_MINMAX prevents "macro min is incompatible with C++" warnings when including (directly or indirectly) <limits> from Apple's standard library.

cfillion commented 7 years ago

Commit 446b92e736d8ba9b48a248993f7396a6fd727cca contains this change.