From 7fb9164fc717b17bc6eb4fa3d919d9d23d5eabc5 Mon Sep 17 00:00:00 2001 From: lufog Date: Thu, 2 May 2024 19:36:29 +0300 Subject: [PATCH] Fix build with LLVM-MinGW --- conev.c | 2 +- desync.c | 6 +++--- error.h | 4 ++-- extend.c | 6 +++--- main.c | 8 ++++---- mpool.c | 2 +- params.h | 2 +- proxy.c | 10 +++++----- proxy.h | 2 +- 9 files changed, 21 insertions(+), 21 deletions(-) diff --git a/conev.c b/conev.c index 3752bd6..10e415c 100644 --- a/conev.c +++ b/conev.c @@ -1,5 +1,5 @@ #define CONEV_H -#include +#include "conev.h" #include #include diff --git a/desync.c b/desync.c index ab1eeac..281c858 100644 --- a/desync.c +++ b/desync.c @@ -33,9 +33,9 @@ #endif #define STR_MODE -#include -#include -#include +#include "params.h" +#include "packets.h" +#include "error.h" static inline int get_family(struct sockaddr *dst) diff --git a/error.h b/error.h index ecfb4b7..10ce12b 100644 --- a/error.h +++ b/error.h @@ -30,7 +30,7 @@ #endif #endif -inline const int unie(int e) +static inline const int unie(int e) { #ifdef _WIN32 switch (e) { @@ -64,4 +64,4 @@ inline const int unie(int e) #define LOG(s, str, ...) \ if (params.debug >= s) \ fprintf(stderr, str, ##__VA_ARGS__) -#endif +#endif \ No newline at end of file diff --git a/extend.c b/extend.c index bc2b465..08b0939 100644 --- a/extend.c +++ b/extend.c @@ -13,9 +13,9 @@ #include -#include -#include -#include +#include "proxy.h" +#include "error.h" +#include "params.h" #include #include diff --git a/main.c b/main.c index ac7b52b..b5e71e4 100644 --- a/main.c +++ b/main.c @@ -6,10 +6,10 @@ #include #include -#include -#include -#include -#include +#include "params.h" +#include "proxy.h" +#include "packets.h" +#include "error.h" #ifndef _WIN32 #include diff --git a/mpool.c b/mpool.c index 076ecd6..690fae0 100644 --- a/mpool.c +++ b/mpool.c @@ -1,6 +1,6 @@ #include #include -#include +#include "mpool.h" static inline int scmp(const struct elem *p, const struct elem *q) diff --git a/params.h b/params.h index d3559e4..0c664f3 100644 --- a/params.h +++ b/params.h @@ -1,5 +1,5 @@ #include -#include +#include "mpool.h" #ifdef _WIN32 #include diff --git a/proxy.c b/proxy.c index b3c64b4..5fe36de 100644 --- a/proxy.c +++ b/proxy.c @@ -7,11 +7,11 @@ #include #include -#include -#include -#include -#include -#include +#include "proxy.h" +#include "params.h" +#include "conev.h" +#include "extend.h" +#include "error.h" #ifdef _WIN32 #include diff --git a/proxy.h b/proxy.h index b92b6bc..b9db0a8 100644 --- a/proxy.h +++ b/proxy.h @@ -6,7 +6,7 @@ #include #endif -#include +#include "conev.h" struct sockaddr_ina { union {