#ifndef RC_USEFUL_INCLUDES
#define RC_USEFUL_INCLUDES
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <getopt.h>
#include <termios.h>
#include <errno.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <time.h>
#include <math.h>
#include <signal.h>
#include <pthread.h>
#include <linux/input.h>
#include <poll.h>
#include <sys/mman.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <sys/time.h>
#include <arpa/inet.h>
#include <ctype.h>
#include <sys/select.h>
#ifndef DEG_TO_RAD
#define DEG_TO_RAD 0.0174532925199
#endif
#ifndef RAD_TO_DEG
#define RAD_TO_DEG 57.295779513
#endif
#ifndef PI
#define PI M_PI
#endif
#ifndef TWO_PI
#define TWO_PI (2.0 * M_PI)
#endif
#ifndef ARRAY_SIZE
#define ARRAY_SIZE(array) sizeof(array)/sizeof(array[0])
#endif
#ifndef min
#define min(a, b) ((a < b) ? a : b)
#endif
#endif