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>
This commit is contained in:
parent
5254e585c6
commit
ffa8c66979
1 changed files with 1 additions and 0 deletions
|
@ -5,6 +5,7 @@
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <libavformat/avformat.h>
|
#include <libavformat/avformat.h>
|
||||||
|
#define SDL_MAIN_HANDLED // avoid link error on Linux Windows Subsystem
|
||||||
#include <SDL2/SDL.h>
|
#include <SDL2/SDL.h>
|
||||||
|
|
||||||
#include "compat.h"
|
#include "compat.h"
|
||||||
|
|
Loading…
Reference in a new issue