diff --git a/dependencies/tlibc b/dependencies/tlibc index c68e4e8..ec164dc 160000 --- a/dependencies/tlibc +++ b/dependencies/tlibc @@ -1 +1 @@ -Subproject commit c68e4e87b327ad21cd664e50ee2b5ef4ded3aed9 +Subproject commit ec164dc4e92dd20401b97e979507ec8f04f04af7 diff --git a/src/db/idb.c b/src/db/idb.c index 82e8af6..135c717 100644 --- a/src/db/idb.c +++ b/src/db/idb.c @@ -1,5 +1,5 @@ #include "idb.h" -#include "magic.h" +#include "tlibc/magic.h" #include "tlibc/filesystem.h" #include "tlibc/collections/HashMap.h" #include "cryptography/AES.h" diff --git a/src/magic.h b/src/magic.h deleted file mode 100644 index d49e1cb..0000000 --- a/src/magic.h +++ /dev/null @@ -1,12 +0,0 @@ -#pragma once -#include "tlibc/std.h" - -typedef union Magic32 { - u32 n; - u8 bytes[4]; -} Magic32; - -typedef union Magic64 { - u64 n; - u8 bytes[8]; -} Magic64; diff --git a/src/network/tcp-chat-protocol/constant.h b/src/network/tcp-chat-protocol/constant.h index eaf760b..f9ac1f6 100644 --- a/src/network/tcp-chat-protocol/constant.h +++ b/src/network/tcp-chat-protocol/constant.h @@ -1,6 +1,6 @@ #pragma once #include "tlibc/errors.h" -#include "magic.h" +#include "tlibc/magic.h" #include "tcp-chat/common_constants.h" #define AES_SESSION_KEY_SIZE 32