Fix link error on Windows Subsystem for Linux

Build failed on WSL because of lack of reference to WinMain@16 during
linking.

Fixes <https://github.com/Genymobile/scrcpy/issues/316>

Signed-off-by: Romain Vimont <rom@rom1v.com>
pull/522/head
Gerdal 5 years ago committed by Romain Vimont
parent 5254e585c6
commit ffa8c66979

@ -5,6 +5,7 @@
#include <stdint.h>
#include <unistd.h>
#include <libavformat/avformat.h>
#define SDL_MAIN_HANDLED // avoid link error on Linux Windows Subsystem
#include <SDL2/SDL.h>
#include "compat.h"

Loading…
Cancel
Save