Portable endian.h header
parent
5f301b81d6
commit
f83ca33dcb
|
@ -10,3 +10,6 @@
|
|||
[submodule "deps/dragontype"]
|
||||
path = deps/dragontype
|
||||
url = https://github.com/dragonblocks/dragontype
|
||||
[submodule "deps/endian.h"]
|
||||
path = deps/endian.h
|
||||
url = https://github.com/mikepb/endian.h
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 4db792b46b498aca58e0c60c3693325b0b418fd9
|
||||
Subproject commit 3c0c88e11791545594f44364ff240609c958ad8e
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 0f885cbba627efe9b8f763e1c2872e904fe0c0b1
|
|
@ -19,6 +19,8 @@ link_libraries(
|
|||
|
||||
set(DEPS_DIR "${CMAKE_SOURCE_DIR}/../deps/")
|
||||
|
||||
add_compile_definitions(DRAGONTYPE_ENDIAN_HEADER="${CMAKE_SOURCE_DIR}/../deps/endian.h/endian.h")
|
||||
|
||||
include_directories(SYSTEM
|
||||
${DEPS_DIR}
|
||||
)
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#include <stdbool.h>
|
||||
#include <unistd.h>
|
||||
#include <math.h>
|
||||
#include <endian.h>
|
||||
#include <endian.h/endian.h>
|
||||
#include <string.h>
|
||||
#include "map.h"
|
||||
#include "util.h"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#include <stdio.h>
|
||||
#include <endian.h>
|
||||
#include <endian.h/endian.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sqlite3.h>
|
||||
|
|
Loading…
Reference in New Issue