diff --git a/cogl/cogl-sdl.h b/cogl/cogl-sdl.h index 732beaf10..6e9c079bd 100644 --- a/cogl/cogl-sdl.h +++ b/cogl/cogl-sdl.h @@ -31,6 +31,15 @@ #include #include +#ifdef _MSC_VER +/* We need to link to SDL.lib/SDLmain.lib + * if we are using Cogl + * that uses the SDL winsys + */ +#pragma comment (lib, "SDL.lib") +#pragma comment (lib, "SDLmain.lib") +#endif + G_BEGIN_DECLS /**