diff options
author | Trumeet <yuuta@yuuta.moe> | 2022-07-26 17:36:20 -0700 |
---|---|---|
committer | Trumeet <yuuta@yuuta.moe> | 2022-07-26 17:36:20 -0700 |
commit | 7099a86ca74fa637f26af38674f80fb8efd5f6fa (patch) | |
tree | 33315c65e82170476cf3c80d976dfa4d16a304a3 /client/acronc/helpers.h | |
parent | 8b07bf593e54dd876e30d0cb1c7c7226d0d1b1e2 (diff) | |
download | acron-7099a86ca74fa637f26af38674f80fb8efd5f6fa.tar acron-7099a86ca74fa637f26af38674f80fb8efd5f6fa.tar.gz acron-7099a86ca74fa637f26af38674f80fb8efd5f6fa.tar.bz2 acron-7099a86ca74fa637f26af38674f80fb8efd5f6fa.zip |
refactor(libacron/acronc/helloworld): move to separate directories
The corresponding CMakeLists.txt files are still rough.
Diffstat (limited to 'client/acronc/helpers.h')
-rw-r--r-- | client/acronc/helpers.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/client/acronc/helpers.h b/client/acronc/helpers.h new file mode 100644 index 0000000..e983439 --- /dev/null +++ b/client/acronc/helpers.h @@ -0,0 +1,24 @@ +/* + * Created by yuuta on 7/24/22. + */ + +#ifndef ACRONC_HELPERS_H +#define ACRONC_HELPERS_H + +#include <libac.h> + +#ifdef WIN32 +#include <winsock2.h> +#include <ws2tcpip.h> + +#else + +#include <sys/socket.h> + +#endif + +const char *ntop(const struct sockaddr *sa); + +const char *world_name(enum ac_world world); + +#endif /* ACRONC_HELPERS_H */ |