gtreshchev / RuntimeAudioImporter

Runtime Audio Importer plugin for Unreal Engine. Importing audio of various formats at runtime.
MIT License
336 stars 69 forks source link

Compatibility with Windows.h header #57

Closed gitced closed 10 months ago

gitced commented 10 months ago

I changed all the calls to std::numeric_limits::min() and std::numeric_limits::max() in the static TTuple, in RAW_RuntimeCodec.h, by wrapping the full name of each min/max in parenthesis. eg: std::numeric_limits::min() changed to (std::numeric_limits::min)()

Without that change, min and max are mistaken with macros defined in the windows header Windows.h, which makes the plugin impossible to compile while using Windows.h.