moved platform checks to tools.h

This commit is contained in:
Maxim Devaev
2022-03-21 15:00:06 +03:00
parent dbecdf5d9b
commit 69a9bafcd5
2 changed files with 10 additions and 10 deletions

View File

@@ -28,6 +28,7 @@
#include <stdbool.h>
#include <string.h>
#include <unistd.h>
#include <limits.h>
#include <locale.h>
#include <errno.h>
#include <math.h>
@@ -37,6 +38,15 @@
#include <sys/file.h>
#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))

View File

@@ -20,16 +20,6 @@
*****************************************************************************/
#include <assert.h>
#ifdef NDEBUG
# error WTF dude? Asserts are good things!
#endif
#include <limits.h>
#if CHAR_BIT != 8
# error There are not 8 bits in a char!
#endif
#include <stdio.h>
#include <stdbool.h>
#include <signal.h>