moved magic.h to tlibc

This commit is contained in:
Timerix 2025-11-18 16:29:37 +05:00
parent d0d7d26671
commit 23c98e14df
4 changed files with 3 additions and 15 deletions

2
dependencies/tlibc vendored

@ -1 +1 @@
Subproject commit c68e4e87b327ad21cd664e50ee2b5ef4ded3aed9 Subproject commit ec164dc4e92dd20401b97e979507ec8f04f04af7

View File

@ -1,5 +1,5 @@
#include "idb.h" #include "idb.h"
#include "magic.h" #include "tlibc/magic.h"
#include "tlibc/filesystem.h" #include "tlibc/filesystem.h"
#include "tlibc/collections/HashMap.h" #include "tlibc/collections/HashMap.h"
#include "cryptography/AES.h" #include "cryptography/AES.h"

View File

@ -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;

View File

@ -1,6 +1,6 @@
#pragma once #pragma once
#include "tlibc/errors.h" #include "tlibc/errors.h"
#include "magic.h" #include "tlibc/magic.h"
#include "tcp-chat/common_constants.h" #include "tcp-chat/common_constants.h"
#define AES_SESSION_KEY_SIZE 32 #define AES_SESSION_KEY_SIZE 32