mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-10-04 15:18:42 +00:00
Define feature test macros in common.h
This enables necessary functions once for all. As a consequence, define common.h before any other header.
This commit is contained in:
parent
59feb2a15c
commit
ab912c23e7
37 changed files with 77 additions and 53 deletions
|
@ -1,6 +1,13 @@
|
|||
#ifndef COMPAT_H
|
||||
#define COMPAT_H
|
||||
|
||||
#define _POSIX_C_SOURCE 200809L
|
||||
#define _XOPEN_SOURCE 700
|
||||
#define _GNU_SOURCE
|
||||
#ifdef __APPLE__
|
||||
# define _DARWIN_C_SOURCE
|
||||
#endif
|
||||
|
||||
#include <libavcodec/version.h>
|
||||
#include <libavformat/version.h>
|
||||
#include <SDL2/SDL_version.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue