mirror of
https://github.com/Genymobile/scrcpy
synced 2024-11-17 03:25:38 +00:00
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
@ -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 New Issue
Block a user