Skip to content
Snippets Groups Projects
Commit 42ad5974 authored by Steve Lhomme's avatar Steve Lhomme
Browse files

vlc_fixups: fix warning when setting Windows defines

For some reason gcc defines NOMINMAX
parent ee858cc7
No related branches found
No related tags found
1 merge request!3156vlc_fixups: fix warning when setting Windows defines
Pipeline #307148 passed with stage
in 18 minutes and 42 seconds
......@@ -49,10 +49,14 @@ typedef unsigned short mode_t;
#endif // _MSC_VER
#ifdef _WIN32
# if !defined(NOMINMAX)
// avoid collision between numeric_limits::max() and max define
#define NOMINMAX
# define NOMINMAX
# endif
# if !defined(_USE_MATH_DEFINES)
// enable M_PI definition
#define _USE_MATH_DEFINES 1
# define _USE_MATH_DEFINES
# endif
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment