about summary refs log tree commit diff stats
path: root/src/include/symbols.h
diff options
context:
space:
mode:
authorAlexandre Julliard <julliard@winehq.org>2023-06-24 18:20:24 +0200
committerGitHub <noreply@github.com>2023-06-24 18:20:24 +0200
commit770cba7e2b46d3bbd0ce309dbc253f7a4517087a (patch)
treeb32abe8503710fba68ef11964f1226e9ac4bb96f /src/include/symbols.h
parent8aa98d3f53600ce978a2a4a41d51f394ef312fd8 (diff)
downloadbox64-770cba7e2b46d3bbd0ce309dbc253f7a4517087a.tar.gz
box64-770cba7e2b46d3bbd0ce309dbc253f7a4517087a.zip
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.
Diffstat (limited to 'src/include/symbols.h')
-rw-r--r--src/include/symbols.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/symbols.h b/src/include/symbols.h
index a7ac4321..32e54b20 100644
--- a/src/include/symbols.h
+++ b/src/include/symbols.h
@@ -9,7 +9,7 @@ typedef struct versymbols_s versymbols_t;
 
 KHASH_MAP_DECLARE_STR(mapsymbols, versymbols_t)
 
-kh_mapsymbols_t* NewMapSymbols();
+kh_mapsymbols_t* NewMapSymbols(void);
 void FreeMapSymbols(kh_mapsymbols_t** map);
 
 // replace if already there
@@ -25,7 +25,7 @@ const char* GetSymbolName(kh_mapsymbols_t* mapsymbols, void* p, uintptr_t* offs,
 
 // default version handling
 KHASH_MAP_DECLARE_STR(defaultversion, const char*)
-kh_defaultversion_t* NewDefaultVersion();
+kh_defaultversion_t* NewDefaultVersion(void);
 void FreeDefaultVersion(kh_defaultversion_t** def);
 
 void AddDefaultVersion(kh_defaultversion_t* def, const char* symname, const char* vername);