From fa0ea24eda75319dfbfe439dbe65c25888da84e9 Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Mon, 4 Oct 2021 11:02:05 +0200 Subject: [PATCH] Simplify endian.h inclusion --- README.md | 6 ------ number.c | 6 +----- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/README.md b/README.md index e26d63c..d505d0d 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,3 @@ It serves a similar purpose as the C++ standard library would, but C++ is just b This library is only capable of what dragonblocks needs, and it does not intend to be general purpose. Included are Array, Bintree, List and Queue as well as numeric types and (de-)serialisation for them. -To use this in your project, just compile the implementation.c file into your project's binary. - -## endian.h -By default, dragontype will use the Linux header. However, since other systems may not have that header, -you can use [this library](https://github.com/mikepb/endian.h) to replace it. Make sure to define DRAGONTYPE_ENDIAN_HEADER -to the include path of this portable endian.h file. diff --git a/number.c b/number.c index e8d4d10..6785042 100644 --- a/number.c +++ b/number.c @@ -1,10 +1,6 @@ #include #include -#ifdef DRAGONTYPE_ENDIAN_HEADER -#include DRAGONTYPE_ENDIAN_HEADER -#else -#include -#endif +#include #include #include "number.h" -- 2.44.0