From 69a9bafcd5f68c7985bccd655012ed8b208fbc58 Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Mon, 21 Mar 2022 15:00:06 +0300 Subject: [PATCH] moved platform checks to tools.h --- src/libs/tools.h | 10 ++++++++++ src/ustreamer/main.c | 10 ---------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/libs/tools.h b/src/libs/tools.h index af45858..b4f1be9 100644 --- a/src/libs/tools.h +++ b/src/libs/tools.h @@ -28,6 +28,7 @@ #include #include #include +#include #include #include #include @@ -37,6 +38,15 @@ #include +#ifdef NDEBUG +# error WTF dude? Asserts are good things! +#endif + +#if CHAR_BIT != 8 +# error There are not 8 bits in a char! +#endif + + #define RN "\r\n" #define INLINE inline __attribute__((always_inline)) diff --git a/src/ustreamer/main.c b/src/ustreamer/main.c index 0c18a8b..1039194 100644 --- a/src/ustreamer/main.c +++ b/src/ustreamer/main.c @@ -20,16 +20,6 @@ *****************************************************************************/ -#include -#ifdef NDEBUG -# error WTF dude? Asserts are good things! -#endif - -#include -#if CHAR_BIT != 8 -# error There are not 8 bits in a char! -#endif - #include #include #include