add extern "C" guard in loader.h

This commit is contained in:
Swung0x48 2025-01-28 20:07:39 +08:00
parent 8f1e781cb7
commit 71ae72758b

View File

@ -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_