diff --git a/gst-libs/gst/gl/gstglapi.h b/gst-libs/gst/gl/gstglapi.h index 93b60b792b..43e6d4a688 100644 --- a/gst-libs/gst/gl/gstglapi.h +++ b/gst-libs/gst/gl/gstglapi.h @@ -62,6 +62,9 @@ # include # endif # else +# if defined(_MSC_VER) +# include +# endif # include # if defined(__WIN32__) || defined(_WIN32) # include @@ -73,7 +76,7 @@ #pragma GCC diagnostic pop #endif -#ifdef WINAPI +#if defined(WINAPI) && !defined(_MSC_VER) #define GSTGLAPI WINAPI #else #define GSTGLAPI