diff options
author | iphydf <iphydf@users.noreply.github.com> | 2016-08-30 17:50:59 +0100 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2016-08-30 19:31:40 +0100 |
commit | fa3b51266bdc13a6b5fafdc2518f89b03e5f084f (patch) | |
tree | 582c9e7a2ca197aab4fc90b1ec26821ae1765e30 /toxcore/tox.h | |
parent | 4692cea75e82d05c4facf97c8853819281f376cf (diff) |
Add missing #includes to headers and rename tox_old to tox_group.
Also, no longer #include the group code into tox.c. Instead, compile it
separately in tox_group.c. This is a bit less surprising to someone looking
around the code. Having some implementations in a .h file is certainly a bit
surprising to a disciplined C programmer, especially when there is no technical
reason to do it.
Diffstat (limited to 'toxcore/tox.h')
-rw-r--r-- | toxcore/tox.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/tox.h b/toxcore/tox.h index 2424ab8d..5d528e16 100644 --- a/toxcore/tox.h +++ b/toxcore/tox.h | |||
@@ -2462,7 +2462,7 @@ uint16_t tox_self_get_udp_port(const Tox *tox, TOX_ERR_GET_PORT *error); | |||
2462 | */ | 2462 | */ |
2463 | uint16_t tox_self_get_tcp_port(const Tox *tox, TOX_ERR_GET_PORT *error); | 2463 | uint16_t tox_self_get_tcp_port(const Tox *tox, TOX_ERR_GET_PORT *error); |
2464 | 2464 | ||
2465 | #include "tox_old.h" | 2465 | #include "tox_group.h" |
2466 | 2466 | ||
2467 | #ifdef __cplusplus | 2467 | #ifdef __cplusplus |
2468 | } | 2468 | } |