mirror of
https://github.com/MobileGL-Dev/MobileGlues.git
synced 2025-09-23 11:14:14 -04:00
add extern "C" guard in loader.h
This commit is contained in:
parent
8f1e781cb7
commit
71ae72758b
@ -9,10 +9,22 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
extern void *(*gles_getProcAddress)(const char *name);
|
||||
|
||||
void *proc_address(void *lib, const char *name);
|
||||
|
||||
extern void *gles, *egl;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
void init_target_gles();
|
||||
|
||||
#define WARN_NULL(name) if (name == NULL) { LOG_W("%s line %d function %s: " #name " is NULL\n", __FILE__, __LINE__, __func__); }
|
||||
|
||||
#define PUSH_IF_COMPILING_EXT(nam, ...) \
|
||||
@ -70,6 +82,4 @@ GLAPI GLAPIENTRY type name(__VA_ARGS__) { \
|
||||
|
||||
#define LOAD_EGL(name) LOAD_LIB(egl, name)
|
||||
|
||||
void init_target_gles();
|
||||
|
||||
#endif // _MOBILEGLUES_LOADER_H_
|
||||
|
Loading…
x
Reference in New Issue
Block a user