Compiling code using GCC 3.2.2 with the following function declaration
give this error.
extern void APIENTRY glutDisplayFunc (void (* APIENTRY)(void) );
Changing to:
extern void APIENTRY glutDisplayFunc (void (*)(void));
fixes the error.
APIENTRY is a macro defined as "_SYSTEM".
What is wrong with the original declaration?
--
Per Johansson
Systems developer
give this error.
extern void APIENTRY glutDisplayFunc (void (* APIENTRY)(void) );
Changing to:
extern void APIENTRY glutDisplayFunc (void (*)(void));
fixes the error.
APIENTRY is a macro defined as "_SYSTEM".
What is wrong with the original declaration?
--
Per Johansson
Systems developer
Comment