g-truc / glm

OpenGL Mathematics (GLM)
https://glm.g-truc.net
Other
9.05k stars 2.1k forks source link

Fix Warning C4003 on Windows #1287

Closed ZeunO8 closed 4 months ago

ZeunO8 commented 4 months ago

I get the following warning in windows when compiling my project (MSVC/cl.exe)

warning C4003: not enough arguments for function-like macro invocation 'min/max'

This commit wraps all occurrences of std::numeric_limits<>::min/max in brackets which resolves the warnings

ZeunO8 commented 4 months ago

Upon rebuilding my project with these changes I ran into another syntax error during compiling. Closing this PR for now until I get a working build