From e95c35ef72fb22d51f46c49edcff0f569cd3ad47 Mon Sep 17 00:00:00 2001 From: Egor Date: Thu, 19 Oct 2023 14:05:38 +0300 Subject: [PATCH] fix header guards --- common.h | 4 ++-- irc.h | 4 ++-- net.h | 4 ++-- util.h | 4 +++- 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/common.h b/common.h index aa8533f..4750193 100644 --- a/common.h +++ b/common.h @@ -1,5 +1,5 @@ -#ifndef _common_h -#define _common_h +#ifndef COMMON_H_ +#define COMMON_H_ #include "netsock.h" #include "config.h" #include "trie.h" diff --git a/irc.h b/irc.h index 2d1a04c..2ac5e2d 100644 --- a/irc.h +++ b/irc.h @@ -1,5 +1,5 @@ -#ifndef _irc_h -#define _irc_h +#ifndef IRC_H_ +#define IRC_H_ #include "common.h" #include "net.h" diff --git a/net.h b/net.h index fb76e30..c147b03 100644 --- a/net.h +++ b/net.h @@ -1,5 +1,5 @@ -#ifndef _net_h -#define _net_h +#ifndef NET_H_ +#define NET_H_ #include "common.h" void sendbuf(struct client_data *client); diff --git a/util.h b/util.h index 26ee14d..15f98d1 100644 --- a/util.h +++ b/util.h @@ -1,3 +1,5 @@ +#ifndef UTIL_H_ +#define UTIL_H_ #include #include #include @@ -15,7 +17,6 @@ void stringupper(char *s); void stringlower(char *s); #ifndef _MSC_VER #pragma GCC poison strdup - #pragma GCC poison strcpy #pragma GCC poison strncpy #pragma GCC poison strcat @@ -25,3 +26,4 @@ void stringlower(char *s); char *mystrdup(const char *s); time_t get_time(); void set_time(time_t t); +#endif -- 2.56.0