#if defined(USE_X86_ASM) && !defined(HAVE_NONSTANDARD_GLAPIENTRY)
#define EXTERN( FUNC ) \
-extern const char *FUNC; \
-extern const char *FUNC##_end
+extern const char FUNC[]; \
+extern const char FUNC##_end[]
EXTERN( _tnl_x86_Attribute1fv );
EXTERN( _tnl_x86_Attribute2fv );
#define DFN( FUNC, CACHE, KEY ) \
struct _tnl_dynfn *dfn = MALLOC_STRUCT( _tnl_dynfn );\
- char *start = (char *)&FUNC; \
- char *end = (char *)&FUNC##_end; \
+ const char *start = FUNC; \
+ const char *end = FUNC##_end; \
int offset = 0; \
insert_at_head( &CACHE, dfn ); \
dfn->key = KEY; \
#define MKDISP(FUNC, SIZE, ATTR, WARP) \
do { \
char *code; \
- char *start = (char *)&WARP; \
- char *end = (char *)&WARP##_end; \
+ const char *start = WARP; \
+ const char *end = WARP##_end; \
int offset = 0; \
code = ALIGN_MALLOC( end - start, 16 ); \
memcpy (code, start, end - start); \
for (attr = 0; attr < _TNL_MAX_ATTR_CODEGEN; attr++) {
for (size = 0; size < 4; size++) {
char *code;
- char *start = (char *)&_tnl_x86_choose_fv;
- char *end = (char *)&_tnl_x86_choose_fv_end;
+ const char *start = _tnl_x86_choose_fv;
+ const char *end = _tnl_x86_choose_fv_end;
int offset = 0;
code = ALIGN_MALLOC( end - start, 16 );
memcpy (code, start, end - start);