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:
@@ -1,6 +1,8 @@
|
||||
#ifndef NET_H
|
||||
#define NET_H
|
||||
|
||||
#include "common.h"
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <SDL2/SDL_platform.h>
|
||||
@@ -17,8 +19,6 @@
|
||||
typedef int socket_t;
|
||||
#endif
|
||||
|
||||
#include "common.h"
|
||||
|
||||
bool
|
||||
net_init(void);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user