forked from 0ad/0ad
Linux compatibility
This was SVN commit r5094.
This commit is contained in:
parent
c45ef68a88
commit
2fee886a34
@ -114,8 +114,8 @@ extern const char* ogl_ExtensionString(void);
|
||||
#else
|
||||
# define CALL_CONV
|
||||
#endif
|
||||
#define FUNC(ret, name, params) extern ret (CALL_CONV *p##name) params;
|
||||
#define FUNC2(ret, nameARB, nameCore, version, params) extern ret (CALL_CONV *p##nameARB) params;
|
||||
#define FUNC(ret, name, params) EXTERN_C ret (CALL_CONV *p##name) params;
|
||||
#define FUNC2(ret, nameARB, nameCore, version, params) EXTERN_C ret (CALL_CONV *p##nameARB) params;
|
||||
#include "glext_funcs.h"
|
||||
#undef FUNC2
|
||||
#undef FUNC
|
||||
|
@ -210,7 +210,7 @@ void udbg_bfd_init(void)
|
||||
exename=EXE_NAME;
|
||||
}
|
||||
|
||||
debug_printf("udbg_init: loading symbols from %s.\n", exename);
|
||||
debug_printf("udbg_bfd_init: loading symbols from %s.\n", exename);
|
||||
|
||||
if (read_symbols(exename, &ps_dbg_context)==0)
|
||||
udbg_initialized=true;
|
||||
@ -316,7 +316,7 @@ static LibError debug_resolve_symbol_dladdr(void *ptr, char* sym_name, char* fil
|
||||
|
||||
LibError debug_resolve_symbol(void* ptr_of_interest, char* sym_name, char* file, int* line)
|
||||
{
|
||||
ONCE(udbg_init());
|
||||
ONCE(udbg_bfd_init());
|
||||
|
||||
// We use our default context - in the future we could do something like
|
||||
// mapping library -> file context to support more detailed reporting on
|
||||
@ -379,4 +379,4 @@ LibError debug_resolve_symbol(void* ptr_of_interest, char* sym_name, char* file,
|
||||
return INFO::OK;
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user