mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-17 10:30:00 +00:00
lib_static: fix warnings
This commit is contained in:
parent
c7e3eae9dd
commit
a0d09c9954
@ -14,7 +14,7 @@ GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include "platform/platform.h"
|
||||
|
||||
#include "library.h"
|
||||
#if XASH_LIB == LIB_STATIC
|
||||
#ifdef XASH_NO_LIBDL
|
||||
|
||||
@ -71,7 +71,7 @@ static void *Lib_Find(table_t *tbl, const char *name )
|
||||
|
||||
void *COM_LoadLibrary( const char *dllname, int build_ordinals_table, qboolean directpath )
|
||||
{
|
||||
return Lib_Find(libs, dllname);
|
||||
return Lib_Find((table_t*)libs, dllname);
|
||||
}
|
||||
|
||||
void COM_FreeLibrary( void *hInstance )
|
||||
|
@ -84,7 +84,7 @@ def apply_static(main, *reloc):
|
||||
"generate exports list for library"
|
||||
|
||||
exports = in_node.read().split('\n')
|
||||
externs = '\n'.join(['extern void %s();' % e for e in exports])
|
||||
externs = '\n'.join(['extern void %s(void);' % e for e in exports])
|
||||
table = '\n'.join(['{ "%s", &%s },' % (e, e) for e in exports])
|
||||
out_node.write('%s\nstruct {const char *name;void *func;} lib_%s_exports[] = {\n%s\n{0,0}\n};\n' % (externs, name, table ))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user