Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC
Commits:
10a66f8a by Steve Lhomme at 2023-01-28T09:48:20+00:00
win32: do not use __declspec(restrict) with the Windows SDK
restrict is forcibly defined to __restrict for C++ compatibility, even with
cl.exe.
And __declspec(__restrict) is not valid, it creates a lot of warnings.
- - - - -
1 changed file:
- include/vlc_fixups.h
Changes:
=====================================
include/vlc_fixups.h
=====================================
@@ -46,6 +46,10 @@ typedef unsigned short mode_t;
#define strncasecmp _strnicmp
#define snwprintf _snwprintf
+// since we define restrist as __restrict for C++, __declspec(restrict) is
bogus
+#define _CRT_SUPPRESS_RESTRICT
+#define DECLSPEC_RESTRICT
+
#endif // _MSC_VER
#ifdef _WIN32
View it on GitLab:
https://code.videolan.org/videolan/vlc/-/commit/10a66f8a77897434a77abfb6ea56b2be7f37d51b
--
View it on GitLab:
https://code.videolan.org/videolan/vlc/-/commit/10a66f8a77897434a77abfb6ea56b2be7f37d51b
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits