decklink: Fix CI failure due to missing WINAPI definition
authorNirbheek Chauhan <nirbheek@centricular.com>
Tue, 18 Jul 2017 22:44:13 +0000 (04:14 +0530)
committerNirbheek Chauhan <nirbheek@centricular.com>
Tue, 18 Jul 2017 22:44:13 +0000 (04:14 +0530)
WINAPI is for the windows calling convention to use, and should expand
to nothing on Linux.

https://build.gnome.org/continuous/buildmaster/builds/2017/07/18/76/build/log-gst-plugins-bad.txt

sys/decklink/gstdecklink.h

index ab5550c..a630f2b 100644 (file)
 # else
 #  define CONVERT_COM_STRING(s) BSTR _s = (BSTR)s; s = _com_util::ConvertBSTRToString(_s); ::SysFreeString(_s);
 #  define FREE_COM_STRING(s) delete[] s;
-# endif
+# endif /* __MINGW32__ */
 #else
 #define COMSTR_T const char*
 #define CONVERT_COM_STRING(s)
 #define FREE_COM_STRING(s)
+#define WINAPI
 #endif /* G_OS_WIN32 */
 
 typedef enum {