提交 ffa8c669 编写于 作者: G Gerdal 提交者: Romain Vimont

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: NRomain Vimont <rom@rom1v.com>
上级 5254e585
......@@ -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"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册