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/threads.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/include/threads.h') diff --git a/src/include/threads.h b/src/include/threads.h index 847d4ee6..ec133d16 100755 --- a/src/include/threads.h +++ b/src/include/threads.h @@ -12,9 +12,9 @@ typedef struct emu_jmpbuf_s { void CleanStackSize(box64context_t* context); -emu_jmpbuf_t* GetJmpBuf(); +emu_jmpbuf_t* GetJmpBuf(void); -void init_pthread_helper(); +void init_pthread_helper(void); void fini_pthread_helper(box64context_t* context); // prepare an "emuthread structure" in pet and return address of function pointer for a "thread creation routine" -- cgit 1.4.1