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:
Romain Vimont
2021-01-08 19:13:53 +01:00
parent 59feb2a15c
commit 7ad8354886
37 changed files with 77 additions and 53 deletions

View File

@@ -1,3 +1,5 @@
#include "common.h"
#include <assert.h>
#include "util/buffer_util.h"

View File

@@ -1,3 +1,5 @@
#include "common.h"
#include <assert.h>
#include <string.h>

View File

@@ -1,7 +1,8 @@
#include "common.h"
#include <assert.h>
#include <string.h>
#include "common.h"
#include "cli.h"
#include "scrcpy.h"

View File

@@ -1,3 +1,5 @@
#include "common.h"
#include <assert.h>
#include <string.h>

View File

@@ -1,3 +1,5 @@
#include "common.h"
#include <assert.h>
#include <string.h>

View File

@@ -1,3 +1,5 @@
#include "common.h"
#include <assert.h>
#include "util/queue.h"

View File

@@ -1,3 +1,5 @@
#include "common.h"
#include <assert.h>
#include <limits.h>
#include <stdio.h>