Group common includes into common.h

Include config.h and compat.h in common.h, and include common.h from all
source files.
This commit is contained in:
Romain Vimont
2021-01-08 19:18:02 +01:00
parent 6385b8c162
commit 59feb2a15c
53 changed files with 30 additions and 63 deletions

View File

@@ -5,7 +5,7 @@
#include <stdint.h>
#include <unistd.h>
#include "config.h"
#include "common.h"
#define DEVICE_MSG_MAX_SIZE (1 << 18) // 256k
// type: 1 byte; length: 4 bytes