[vlc-commits] [Git][videolan/vlc][master] vlc_fixups: fix warning when setting Windows defines
    Steve Lhomme (@robUx4) 
    gitlab at videolan.org
       
    Thu Jan 26 11:19:38 UTC 2023
    
    
  
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
42ad5974 by Steve Lhomme at 2023-01-26T10:10:09+00:00
vlc_fixups: fix warning when setting Windows defines
For some reason gcc defines NOMINMAX
- - - - -
1 changed file:
- include/vlc_fixups.h
Changes:
=====================================
include/vlc_fixups.h
=====================================
@@ -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
 
 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/42ad59744f5e0706fe6972a81e35cc66f0527f0c
-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/42ad59744f5e0706fe6972a81e35cc66f0527f0c
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
    
    
More information about the vlc-commits
mailing list