All headers and sources are in src/. To avoid using relative includes from subdirectories ("../../"), include the source root directory.
17 lines
221 B
C
17 lines
221 B
C
#include "net.h"
|
|
|
|
# include <unistd.h>
|
|
|
|
SDL_bool net_init(void) {
|
|
// do nothing
|
|
return SDL_TRUE;
|
|
}
|
|
|
|
void net_cleanup(void) {
|
|
// do nothing
|
|
}
|
|
|
|
SDL_bool net_close(socket_t socket) {
|
|
return !close(socket);
|
|
}
|