reorganize files and add missing includes

This commit is contained in:
Lysann Tranvouez 2025-09-28 00:42:23 +02:00
parent d80ec89490
commit 21cd133480
5 changed files with 13 additions and 4 deletions

View file

@ -4,8 +4,13 @@ project(mach_detours C)
set(CMAKE_C_STANDARD 23)
add_library(mach_detours SHARED
mach_detours.c
mach_detours.h
arm64/detours_arm64.h
detours_internal.h
include/mach_detours.h
src/mach_detours.c
src/detours_internal.h
src/arm64/detours_arm64.h
)
target_include_directories(mach_detours
PUBLIC "include"
PRIVATE "src")

View file

@ -5,6 +5,8 @@
#ifndef MACH_DETOURS_ARM64_H
#define MACH_DETOURS_ARM64_H
#include <stdint.h>
typedef struct detour_align
{
uint8_t obTarget;

View file

@ -10,6 +10,8 @@
#define DETOUR_TRACE(x) printf x
#define DETOUR_BREAK() raise(SIGTRAP)
#else
#include <signal.h>
#include <stdio.h>
#define DETOUR_TRACE(x)
#define DETOUR_BREAK()
#endif