From 29c785ef282fa40a53ef971772fdfb571eae1b65 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Sat, 31 Mar 2018 10:41:32 +0530 Subject: [PATCH] decklink: Fix MinGW warnings due to MSVC-specific pragmas https://bugzilla.gnome.org/show_bug.cgi?id=794652#c7 --- sys/decklink/win/DeckLinkAPI.h | 2 ++ sys/decklink/win/DeckLinkAPI_i.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/sys/decklink/win/DeckLinkAPI.h b/sys/decklink/win/DeckLinkAPI.h index 18a0c52..279946f 100644 --- a/sys/decklink/win/DeckLinkAPI.h +++ b/sys/decklink/win/DeckLinkAPI.h @@ -16,7 +16,9 @@ */ /* @@MIDL_FILE_HEADING( ) */ +#ifdef _MSC_VER #pragma warning( disable: 4049 ) /* more than 64k source lines */ +#endif /* verify that the version is high enough to compile this file*/ diff --git a/sys/decklink/win/DeckLinkAPI_i.c b/sys/decklink/win/DeckLinkAPI_i.c index cd1e987..e69d976 100644 --- a/sys/decklink/win/DeckLinkAPI_i.c +++ b/sys/decklink/win/DeckLinkAPI_i.c @@ -18,7 +18,9 @@ */ /* @@MIDL_FILE_HEADING( ) */ +#ifdef _MSC_VER #pragma warning( disable: 4049 ) /* more than 64k source lines */ +#endif #ifdef __cplusplus -- 2.7.4