const struct mapi_stub *alias = NULL;
unsigned i;
- (void) memset(function_stubs, 0, sizeof(function_stubs));
+ (void) memset((void*)function_stubs, 0, sizeof(function_stubs));
/* find the missing stubs, and decide the alias */
for (i = 0; function_names[i] != NULL && i < 8; i++) {
const struct mapi_stub *stub = (const struct mapi_stub *) elem;
const char *stub_name;
- stub_name = &public_string_pool[(unsigned long) stub->name];
+ stub_name = &public_string_pool[(size_t) stub->name];
return strcmp(name, stub_name);
}
if (stub >= public_stubs &&
stub < public_stubs + ARRAY_SIZE(public_stubs))
- name = &public_string_pool[(unsigned long) stub->name];
+ name = &public_string_pool[(size_t) stub->name];
else
name = (const char *) stub->name;
void
u_current_set_table(const struct _glapi_table *tbl);
-struct _glapi_table *
+_GLAPI_EXPORT struct _glapi_table *
u_current_get_table_internal(void);
void
u_current_set_context(const void *ptr);
-void *
+_GLAPI_EXPORT void *
u_current_get_context_internal(void);
#endif /* _U_CURRENT_H_ */