From: Elias Fleckenstein Date: Mon, 4 Oct 2021 09:02:05 +0000 (+0200) Subject: Simplify endian.h inclusion X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=fa0ea24eda75319dfbfe439dbe65c25888da84e9;p=dragonstd.git Simplify endian.h inclusion --- 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"