summaryrefslogtreecommitdiff
path: root/toxcore
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2018-09-09 19:54:05 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-09-14 19:09:10 +0000
commit49bb43f6626b927b978eac765609844294523cad (patch)
tree8a56916651f51c63489cd1427e6fba2b6a19cbdb /toxcore
parent7821cd84121ac8a4de5c70ab46d36bcbb881bb43 (diff)
Standardise header guards.
Using the full path including the repo name.
Diffstat (limited to 'toxcore')
-rw-r--r--toxcore/DHT.h4
-rw-r--r--toxcore/LAN_discovery.api.h6
-rw-r--r--toxcore/LAN_discovery.h4
-rw-r--r--toxcore/Messenger.h4
-rw-r--r--toxcore/TCP_client.h4
-rw-r--r--toxcore/TCP_connection.h4
-rw-r--r--toxcore/TCP_server.h4
-rw-r--r--toxcore/ccompat.h6
-rw-r--r--toxcore/crypto_core.api.h6
-rw-r--r--toxcore/crypto_core.h6
-rw-r--r--toxcore/friend_connection.h4
-rw-r--r--toxcore/friend_requests.h4
-rw-r--r--toxcore/group.h4
-rw-r--r--toxcore/list.h4
-rw-r--r--toxcore/logger.h6
-rw-r--r--toxcore/mono_time.h2
-rw-r--r--toxcore/net_crypto.h4
-rw-r--r--toxcore/network.h4
-rw-r--r--toxcore/onion.h4
-rw-r--r--toxcore/onion_announce.h4
-rw-r--r--toxcore/onion_client.h4
-rw-r--r--toxcore/ping.api.h6
-rw-r--r--toxcore/ping.h6
-rw-r--r--toxcore/ping_array.api.h2
-rw-r--r--toxcore/ping_array.h2
-rw-r--r--toxcore/tox.api.h6
-rw-r--r--toxcore/tox.h6
-rw-r--r--toxcore/util.h6
28 files changed, 63 insertions, 63 deletions
diff --git a/toxcore/DHT.h b/toxcore/DHT.h
index 9f5f1ec7..cbe905ce 100644
--- a/toxcore/DHT.h
+++ b/toxcore/DHT.h
@@ -21,8 +21,8 @@
21 * You should have received a copy of the GNU General Public License 21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 23 */
24#ifndef DHT_H 24#ifndef C_TOXCORE_TOXCORE_DHT_H
25#define DHT_H 25#define C_TOXCORE_TOXCORE_DHT_H
26 26
27#include "crypto_core.h" 27#include "crypto_core.h"
28#include "logger.h" 28#include "logger.h"
diff --git a/toxcore/LAN_discovery.api.h b/toxcore/LAN_discovery.api.h
index 515552f7..31d6a5f6 100644
--- a/toxcore/LAN_discovery.api.h
+++ b/toxcore/LAN_discovery.api.h
@@ -22,8 +22,8 @@
22 * You should have received a copy of the GNU General Public License 22 * You should have received a copy of the GNU General Public License
23 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 23 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
24 */ 24 */
25#ifndef LAN_DISCOVERY_H 25#ifndef C_TOXCORE_TOXCORE_LAN_DISCOVERY_H
26#define LAN_DISCOVERY_H 26#define C_TOXCORE_TOXCORE_LAN_DISCOVERY_H
27 27
28#include "DHT.h" 28#include "DHT.h"
29%} 29%}
@@ -68,5 +68,5 @@ static bool ip_is_local(iP::this ip);
68static bool ip_is_lan(iP::this ip); 68static bool ip_is_lan(iP::this ip);
69 69
70%{ 70%{
71#endif 71#endif // C_TOXCORE_TOXCORE_LAN_DISCOVERY_H
72%} 72%}
diff --git a/toxcore/LAN_discovery.h b/toxcore/LAN_discovery.h
index 3e563782..8c48316d 100644
--- a/toxcore/LAN_discovery.h
+++ b/toxcore/LAN_discovery.h
@@ -21,8 +21,8 @@
21 * You should have received a copy of the GNU General Public License 21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 23 */
24#ifndef LAN_DISCOVERY_H 24#ifndef C_TOXCORE_TOXCORE_LAN_DISCOVERY_H
25#define LAN_DISCOVERY_H 25#define C_TOXCORE_TOXCORE_LAN_DISCOVERY_H
26 26
27#include "DHT.h" 27#include "DHT.h"
28 28
diff --git a/toxcore/Messenger.h b/toxcore/Messenger.h
index 09f631ff..b2de6a5a 100644
--- a/toxcore/Messenger.h
+++ b/toxcore/Messenger.h
@@ -22,8 +22,8 @@
22 * You should have received a copy of the GNU General Public License 22 * You should have received a copy of the GNU General Public License
23 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 23 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
24 */ 24 */
25#ifndef MESSENGER_H 25#ifndef C_TOXCORE_TOXCORE_MESSENGER_H
26#define MESSENGER_H 26#define C_TOXCORE_TOXCORE_MESSENGER_H
27 27
28#include "friend_connection.h" 28#include "friend_connection.h"
29#include "friend_requests.h" 29#include "friend_requests.h"
diff --git a/toxcore/TCP_client.h b/toxcore/TCP_client.h
index 412e43e2..9d43d642 100644
--- a/toxcore/TCP_client.h
+++ b/toxcore/TCP_client.h
@@ -21,8 +21,8 @@
21 * You should have received a copy of the GNU General Public License 21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 23 */
24#ifndef TCP_CLIENT_H 24#ifndef C_TOXCORE_TOXCORE_TCP_CLIENT_H
25#define TCP_CLIENT_H 25#define C_TOXCORE_TOXCORE_TCP_CLIENT_H
26 26
27#include "TCP_server.h" 27#include "TCP_server.h"
28#include "crypto_core.h" 28#include "crypto_core.h"
diff --git a/toxcore/TCP_connection.h b/toxcore/TCP_connection.h
index 8ae9549f..1962fb1a 100644
--- a/toxcore/TCP_connection.h
+++ b/toxcore/TCP_connection.h
@@ -21,8 +21,8 @@
21 * You should have received a copy of the GNU General Public License 21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 23 */
24#ifndef TCP_CONNECTION_H 24#ifndef C_TOXCORE_TOXCORE_TCP_CONNECTION_H
25#define TCP_CONNECTION_H 25#define C_TOXCORE_TOXCORE_TCP_CONNECTION_H
26 26
27#include "TCP_client.h" 27#include "TCP_client.h"
28 28
diff --git a/toxcore/TCP_server.h b/toxcore/TCP_server.h
index fe05b5a5..1798ebeb 100644
--- a/toxcore/TCP_server.h
+++ b/toxcore/TCP_server.h
@@ -21,8 +21,8 @@
21 * You should have received a copy of the GNU General Public License 21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 23 */
24#ifndef TCP_SERVER_H 24#ifndef C_TOXCORE_TOXCORE_TCP_SERVER_H
25#define TCP_SERVER_H 25#define C_TOXCORE_TOXCORE_TCP_SERVER_H
26 26
27#include "crypto_core.h" 27#include "crypto_core.h"
28#include "list.h" 28#include "list.h"
diff --git a/toxcore/ccompat.h b/toxcore/ccompat.h
index 5b37a294..ba8c7fe8 100644
--- a/toxcore/ccompat.h
+++ b/toxcore/ccompat.h
@@ -1,8 +1,8 @@
1/* 1/*
2 * C language compatibility macros for varying compiler support. 2 * C language compatibility macros for varying compiler support.
3 */ 3 */
4#ifndef CCOMPAT_H 4#ifndef C_TOXCORE_TOXCORE_CCOMPAT_H
5#define CCOMPAT_H 5#define C_TOXCORE_TOXCORE_CCOMPAT_H
6 6
7// Variable length arrays. 7// Variable length arrays.
8// VLA(type, name, size) allocates a variable length array with automatic 8// VLA(type, name, size) allocates a variable length array with automatic
@@ -48,4 +48,4 @@
48#define GNU_PRINTF(f, a) 48#define GNU_PRINTF(f, a)
49#endif 49#endif
50 50
51#endif /* CCOMPAT_H */ 51#endif // C_TOXCORE_TOXCORE_CCOMPAT_H
diff --git a/toxcore/crypto_core.api.h b/toxcore/crypto_core.api.h
index 9623e5b3..94ccac47 100644
--- a/toxcore/crypto_core.api.h
+++ b/toxcore/crypto_core.api.h
@@ -22,8 +22,8 @@
22 * You should have received a copy of the GNU General Public License 22 * You should have received a copy of the GNU General Public License
23 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 23 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
24 */ 24 */
25#ifndef CRYPTO_CORE_H 25#ifndef C_TOXCORE_TOXCORE_CRYPTO_CORE_H
26#define CRYPTO_CORE_H 26#define C_TOXCORE_TOXCORE_CRYPTO_CORE_H
27 27
28#include <stdbool.h> 28#include <stdbool.h>
29#include <stddef.h> 29#include <stddef.h>
@@ -264,5 +264,5 @@ static void new_symmetric_key(uint8_t[CRYPTO_SYMMETRIC_KEY_SIZE] key);
264} // extern "C" 264} // extern "C"
265#endif 265#endif
266 266
267#endif /* CRYPTO_CORE_H */ 267#endif // C_TOXCORE_TOXCORE_CRYPTO_CORE_H
268%} 268%}
diff --git a/toxcore/crypto_core.h b/toxcore/crypto_core.h
index 90b86990..b287b21e 100644
--- a/toxcore/crypto_core.h
+++ b/toxcore/crypto_core.h
@@ -21,8 +21,8 @@
21 * You should have received a copy of the GNU General Public License 21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 23 */
24#ifndef CRYPTO_CORE_H 24#ifndef C_TOXCORE_TOXCORE_CRYPTO_CORE_H
25#define CRYPTO_CORE_H 25#define C_TOXCORE_TOXCORE_CRYPTO_CORE_H
26 26
27#include <stdbool.h> 27#include <stdbool.h>
28#include <stddef.h> 28#include <stddef.h>
@@ -249,4 +249,4 @@ void new_symmetric_key(uint8_t *key);
249} // extern "C" 249} // extern "C"
250#endif 250#endif
251 251
252#endif /* CRYPTO_CORE_H */ 252#endif // C_TOXCORE_TOXCORE_CRYPTO_CORE_H
diff --git a/toxcore/friend_connection.h b/toxcore/friend_connection.h
index 8a355377..149a4fa7 100644
--- a/toxcore/friend_connection.h
+++ b/toxcore/friend_connection.h
@@ -21,8 +21,8 @@
21 * You should have received a copy of the GNU General Public License 21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 23 */
24#ifndef FRIEND_CONNECTION_H 24#ifndef C_TOXCORE_TOXCORE_FRIEND_CONNECTION_H
25#define FRIEND_CONNECTION_H 25#define C_TOXCORE_TOXCORE_FRIEND_CONNECTION_H
26 26
27#include "DHT.h" 27#include "DHT.h"
28#include "LAN_discovery.h" 28#include "LAN_discovery.h"
diff --git a/toxcore/friend_requests.h b/toxcore/friend_requests.h
index f8b3718c..7fcd3f0d 100644
--- a/toxcore/friend_requests.h
+++ b/toxcore/friend_requests.h
@@ -21,8 +21,8 @@
21 * You should have received a copy of the GNU General Public License 21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 23 */
24#ifndef FRIEND_REQUESTS_H 24#ifndef C_TOXCORE_TOXCORE_FRIEND_REQUESTS_H
25#define FRIEND_REQUESTS_H 25#define C_TOXCORE_TOXCORE_FRIEND_REQUESTS_H
26 26
27#include "friend_connection.h" 27#include "friend_connection.h"
28 28
diff --git a/toxcore/group.h b/toxcore/group.h
index 110f5d44..7acd4637 100644
--- a/toxcore/group.h
+++ b/toxcore/group.h
@@ -21,8 +21,8 @@
21 * You should have received a copy of the GNU General Public License 21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 23 */
24#ifndef GROUP_H 24#ifndef C_TOXCORE_TOXCORE_GROUP_H
25#define GROUP_H 25#define C_TOXCORE_TOXCORE_GROUP_H
26 26
27#include "Messenger.h" 27#include "Messenger.h"
28 28
diff --git a/toxcore/list.h b/toxcore/list.h
index 6ec67505..c9c72c2a 100644
--- a/toxcore/list.h
+++ b/toxcore/list.h
@@ -23,8 +23,8 @@
23 * You should have received a copy of the GNU General Public License 23 * You should have received a copy of the GNU General Public License
24 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 24 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
25 */ 25 */
26#ifndef LIST_H 26#ifndef C_TOXCORE_TOXCORE_LIST_H
27#define LIST_H 27#define C_TOXCORE_TOXCORE_LIST_H
28 28
29#include <stdint.h> 29#include <stdint.h>
30 30
diff --git a/toxcore/logger.h b/toxcore/logger.h
index aaca7612..6231ca4b 100644
--- a/toxcore/logger.h
+++ b/toxcore/logger.h
@@ -21,8 +21,8 @@
21 * You should have received a copy of the GNU General Public License 21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 23 */
24#ifndef TOXLOGGER_H 24#ifndef C_TOXCORE_TOXCORE_LOGGER_H
25#define TOXLOGGER_H 25#define C_TOXCORE_TOXCORE_LOGGER_H
26 26
27#include <stdint.h> 27#include <stdint.h>
28 28
@@ -90,4 +90,4 @@ void logger_write(
90#define LOGGER_WARNING(log, ...) LOGGER_WRITE(log, LOGGER_LEVEL_WARNING, __VA_ARGS__) 90#define LOGGER_WARNING(log, ...) LOGGER_WRITE(log, LOGGER_LEVEL_WARNING, __VA_ARGS__)
91#define LOGGER_ERROR(log, ...) LOGGER_WRITE(log, LOGGER_LEVEL_ERROR , __VA_ARGS__) 91#define LOGGER_ERROR(log, ...) LOGGER_WRITE(log, LOGGER_LEVEL_ERROR , __VA_ARGS__)
92 92
93#endif /* TOXLOGGER_H */ 93#endif // C_TOXCORE_TOXCORE_LOGGER_H
diff --git a/toxcore/mono_time.h b/toxcore/mono_time.h
index c2934d06..503548f2 100644
--- a/toxcore/mono_time.h
+++ b/toxcore/mono_time.h
@@ -66,4 +66,4 @@ void mono_time_set_current_time_callback(Mono_Time *mono_time,
66} 66}
67#endif 67#endif
68 68
69#endif // C_TOXCORE_TOXCORE_MONO_TIME_H 69#endif // C_TOXCORE_TOXCORE_MONO_TIME_H
diff --git a/toxcore/net_crypto.h b/toxcore/net_crypto.h
index 9fd47014..45e1a05e 100644
--- a/toxcore/net_crypto.h
+++ b/toxcore/net_crypto.h
@@ -21,8 +21,8 @@
21 * You should have received a copy of the GNU General Public License 21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 23 */
24#ifndef NET_CRYPTO_H 24#ifndef C_TOXCORE_TOXCORE_NET_CRYPTO_H
25#define NET_CRYPTO_H 25#define C_TOXCORE_TOXCORE_NET_CRYPTO_H
26 26
27#include "DHT.h" 27#include "DHT.h"
28#include "LAN_discovery.h" 28#include "LAN_discovery.h"
diff --git a/toxcore/network.h b/toxcore/network.h
index 6c5b6781..a1d83842 100644
--- a/toxcore/network.h
+++ b/toxcore/network.h
@@ -21,8 +21,8 @@
21 * You should have received a copy of the GNU General Public License 21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 23 */
24#ifndef NETWORK_H 24#ifndef C_TOXCORE_TOXCORE_NETWORK_H
25#define NETWORK_H 25#define C_TOXCORE_TOXCORE_NETWORK_H
26 26
27#include "logger.h" 27#include "logger.h"
28 28
diff --git a/toxcore/onion.h b/toxcore/onion.h
index c48d6566..26cf0039 100644
--- a/toxcore/onion.h
+++ b/toxcore/onion.h
@@ -21,8 +21,8 @@
21 * You should have received a copy of the GNU General Public License 21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 23 */
24#ifndef ONION_H 24#ifndef C_TOXCORE_TOXCORE_ONION_H
25#define ONION_H 25#define C_TOXCORE_TOXCORE_ONION_H
26 26
27#include "DHT.h" 27#include "DHT.h"
28#include "mono_time.h" 28#include "mono_time.h"
diff --git a/toxcore/onion_announce.h b/toxcore/onion_announce.h
index adbffc6a..2eb5051b 100644
--- a/toxcore/onion_announce.h
+++ b/toxcore/onion_announce.h
@@ -21,8 +21,8 @@
21 * You should have received a copy of the GNU General Public License 21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 23 */
24#ifndef ONION_ANNOUNCE_H 24#ifndef C_TOXCORE_TOXCORE_ONION_ANNOUNCE_H
25#define ONION_ANNOUNCE_H 25#define C_TOXCORE_TOXCORE_ONION_ANNOUNCE_H
26 26
27#include "onion.h" 27#include "onion.h"
28 28
diff --git a/toxcore/onion_client.h b/toxcore/onion_client.h
index ff090ba2..66e417d7 100644
--- a/toxcore/onion_client.h
+++ b/toxcore/onion_client.h
@@ -22,8 +22,8 @@
22 * You should have received a copy of the GNU General Public License 22 * You should have received a copy of the GNU General Public License
23 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 23 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
24 */ 24 */
25#ifndef ONION_CLIENT_H 25#ifndef C_TOXCORE_TOXCORE_ONION_CLIENT_H
26#define ONION_CLIENT_H 26#define C_TOXCORE_TOXCORE_ONION_CLIENT_H
27 27
28#include "net_crypto.h" 28#include "net_crypto.h"
29#include "onion_announce.h" 29#include "onion_announce.h"
diff --git a/toxcore/ping.api.h b/toxcore/ping.api.h
index 9f8d319c..2ae5b365 100644
--- a/toxcore/ping.api.h
+++ b/toxcore/ping.api.h
@@ -24,8 +24,8 @@
24 * You should have received a copy of the GNU General Public License 24 * You should have received a copy of the GNU General Public License
25 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 25 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
26 */ 26 */
27#ifndef PING_H 27#ifndef C_TOXCORE_TOXCORE_PING_H
28#define PING_H 28#define C_TOXCORE_TOXCORE_PING_H
29 29
30#include "DHT.h" 30#include "DHT.h"
31#include "network.h" 31#include "network.h"
@@ -62,5 +62,5 @@ int32_t send_request(iP_Port::this ipp, const uint8_t *public_key);
62} 62}
63 63
64%{ 64%{
65#endif /* PING_H */ 65#endif // C_TOXCORE_TOXCORE_PING_H
66%} 66%}
diff --git a/toxcore/ping.h b/toxcore/ping.h
index da9a53f2..0413e285 100644
--- a/toxcore/ping.h
+++ b/toxcore/ping.h
@@ -23,8 +23,8 @@
23 * You should have received a copy of the GNU General Public License 23 * You should have received a copy of the GNU General Public License
24 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 24 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
25 */ 25 */
26#ifndef PING_H 26#ifndef C_TOXCORE_TOXCORE_PING_H
27#define PING_H 27#define C_TOXCORE_TOXCORE_PING_H
28 28
29#include "DHT.h" 29#include "DHT.h"
30#include "network.h" 30#include "network.h"
@@ -71,4 +71,4 @@ void ping_iterate(Ping *ping);
71 71
72int32_t ping_send_request(Ping *ping, struct IP_Port ipp, const uint8_t *public_key); 72int32_t ping_send_request(Ping *ping, struct IP_Port ipp, const uint8_t *public_key);
73 73
74#endif /* PING_H */ 74#endif // C_TOXCORE_TOXCORE_PING_H
diff --git a/toxcore/ping_array.api.h b/toxcore/ping_array.api.h
index b153db25..e0ac333b 100644
--- a/toxcore/ping_array.api.h
+++ b/toxcore/ping_array.api.h
@@ -77,5 +77,5 @@ int32_t check(const mono_Time::this *mono_time, uint8_t[length] data, uint64_t p
77} // extern "C" 77} // extern "C"
78#endif 78#endif
79 79
80#endif // C_TOXCORE_TOXCORE_PING_ARRAY_H 80#endif // C_TOXCORE_TOXCORE_PING_ARRAY_H
81%} 81%}
diff --git a/toxcore/ping_array.h b/toxcore/ping_array.h
index 90e10460..a2e57856 100644
--- a/toxcore/ping_array.h
+++ b/toxcore/ping_array.h
@@ -78,4 +78,4 @@ int32_t ping_array_check(struct Ping_Array *_array, const struct Mono_Time *mono
78} // extern "C" 78} // extern "C"
79#endif 79#endif
80 80
81#endif // C_TOXCORE_TOXCORE_PING_ARRAY_H 81#endif // C_TOXCORE_TOXCORE_PING_ARRAY_H
diff --git a/toxcore/tox.api.h b/toxcore/tox.api.h
index d960ee74..8beb86b7 100644
--- a/toxcore/tox.api.h
+++ b/toxcore/tox.api.h
@@ -22,8 +22,8 @@
22 * You should have received a copy of the GNU General Public License 22 * You should have received a copy of the GNU General Public License
23 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 23 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
24 */ 24 */
25#ifndef TOX_H 25#ifndef C_TOXCORE_TOXCORE_TOX_H
26#define TOX_H 26#define C_TOXCORE_TOXCORE_TOX_H
27 27
28#include <stdbool.h> 28#include <stdbool.h>
29#include <stddef.h> 29#include <stddef.h>
@@ -2772,5 +2772,5 @@ typedef TOX_CONNECTION Tox_Connection;
2772typedef TOX_FILE_CONTROL Tox_File_Control; 2772typedef TOX_FILE_CONTROL Tox_File_Control;
2773typedef TOX_CONFERENCE_TYPE Tox_Conference_Type; 2773typedef TOX_CONFERENCE_TYPE Tox_Conference_Type;
2774 2774
2775#endif 2775#endif // C_TOXCORE_TOXCORE_TOX_H
2776%} 2776%}
diff --git a/toxcore/tox.h b/toxcore/tox.h
index 5dcdd7f0..5a9ca450 100644
--- a/toxcore/tox.h
+++ b/toxcore/tox.h
@@ -21,8 +21,8 @@
21 * You should have received a copy of the GNU General Public License 21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 23 */
24#ifndef TOX_H 24#ifndef C_TOXCORE_TOXCORE_TOX_H
25#define TOX_H 25#define C_TOXCORE_TOXCORE_TOX_H
26 26
27#include <stdbool.h> 27#include <stdbool.h>
28#include <stddef.h> 28#include <stddef.h>
@@ -3167,4 +3167,4 @@ typedef TOX_CONNECTION Tox_Connection;
3167typedef TOX_FILE_CONTROL Tox_File_Control; 3167typedef TOX_FILE_CONTROL Tox_File_Control;
3168typedef TOX_CONFERENCE_TYPE Tox_Conference_Type; 3168typedef TOX_CONFERENCE_TYPE Tox_Conference_Type;
3169 3169
3170#endif 3170#endif // C_TOXCORE_TOXCORE_TOX_H
diff --git a/toxcore/util.h b/toxcore/util.h
index b4ba407d..85586724 100644
--- a/toxcore/util.h
+++ b/toxcore/util.h
@@ -23,8 +23,8 @@
23 * You should have received a copy of the GNU General Public License 23 * You should have received a copy of the GNU General Public License
24 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 24 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
25 */ 25 */
26#ifndef UTIL_H 26#ifndef C_TOXCORE_TOXCORE_UTIL_H
27#define UTIL_H 27#define C_TOXCORE_TOXCORE_UTIL_H
28 28
29#include <pthread.h> 29#include <pthread.h>
30#include <stdbool.h> 30#include <stdbool.h>
@@ -55,4 +55,4 @@ uint64_t min_u64(uint64_t a, uint64_t b);
55} // extern "C" 55} // extern "C"
56#endif 56#endif
57 57
58#endif /* UTIL_H */ 58#endif // C_TOXCORE_TOXCORE_UTIL_H