]> git.lizzy.rs Git - dragonstd.git/commitdiff
Simplify endian.h inclusion
authorElias Fleckenstein <eliasfleckenstein@web.de>
Mon, 4 Oct 2021 09:02:05 +0000 (11:02 +0200)
committerElias Fleckenstein <eliasfleckenstein@web.de>
Mon, 4 Oct 2021 09:02:05 +0000 (11:02 +0200)
README.md
number.c

index e26d63cd9021d5f99afc30778cac2ad89bba45e3..d505d0d37d4e2b1ebf5b8954adc88ae50a13c936 100644 (file)
--- 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 <endian.h> 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.
index e8d4d1085c49b84c395ee3a0ea9e6d6b8ff635bc..678504209506eee9e8bd31a100bdb17ea7eae78b 100644 (file)
--- a/number.c
+++ b/number.c
@@ -1,10 +1,6 @@
 #include <stdio.h>
 #include <unistd.h>
-#ifdef DRAGONTYPE_ENDIAN_HEADER
-#include DRAGONTYPE_ENDIAN_HEADER
-#else
-#include <endian.h>
-#endif
+#include <endian.h/endian.h>
 #include <poll.h>
 #include "number.h"