Move all compat ifdefs definitions to compat.h

This allows to give a proper name to features requirements.
This commit is contained in:
Romain Vimont
2019-02-16 15:04:32 +01:00
parent 3fc11ee465
commit 751600a7f9
5 changed files with 56 additions and 18 deletions

View File

@@ -5,6 +5,7 @@
#include <libavformat/avformat.h>
#include <SDL2/SDL.h>
#include "compat.h"
#include "config.h"
#include "log.h"
#include "recorder.h"
@@ -371,7 +372,7 @@ int main(int argc, char *argv[]) {
return 0;
}
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(58, 9, 100)
#ifdef SCRCPY_LAVF_REQUIRES_REGISTER_ALL
av_register_all();
#endif