From 770cba7e2b46d3bbd0ce309dbc253f7a4517087a Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Sat, 24 Jun 2023 18:20:24 +0200 Subject: A few cosmetic fixes (#858) * [DYNAREC] Don't include pthread.h in C files. It's already included from box64context.h. Since there's no pthread.h on Win32, including it only once avoids having to add ifdefs everywhere. * [DYNAREC] Remove some duplicate definitions of the GETG helper macros. * Declare void functions with an explicit void. To avoid 'function declaration is not a prototype' warnings when using -Wstrict-prototypes. * Avoid including bridge_private.h in files that don't need it. * Avoid defining ZYDIS_RUNTIME_ADDRESS_NONE. It's not used, and conflicts with the original Zydis headers. --- src/include/bridge.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/include/bridge.h') diff --git a/src/include/bridge.h b/src/include/bridge.h index 9859ae85..77f4e41a 100755 --- a/src/include/bridge.h +++ b/src/include/bridge.h @@ -7,7 +7,7 @@ typedef struct bridge_s bridge_t; typedef struct box64context_s box64context_t; typedef void (*wrapper_t)(x64emu_t* emu, uintptr_t fnc); -bridge_t *NewBridge(); +bridge_t *NewBridge(void); void FreeBridge(bridge_t** bridge); uintptr_t AddBridge(bridge_t* bridge, wrapper_t w, void* fnc, int N, const char* name); @@ -22,13 +22,13 @@ uintptr_t AddVSyscall(bridge_t* bridge, int num); int hasAlternate(void* addr); void* getAlternate(void* addr); void addAlternate(void* addr, void* alt); -void cleanAlternate(); +void cleanAlternate(void); #ifdef HAVE_TRACE const char* getBridgeName(void* addr); #endif -void init_bridge_helper(); -void fini_bridge_helper(); +void init_bridge_helper(void); +void fini_bridge_helper(void); #endif //__BRIDGE_H_ \ No newline at end of file -- cgit 1.4.1