I run this version of gcc
$ gcc --version
gcc (GCC) 3.4.5 20051201 (Red Hat 3.4.5-2)
My program uses a custom written library that has a function named basename with its own set of parameters. My question is, if I want to use the GNU version of basename, how can I do it?
I tried including this in my header
and I get this compiler error:
x.h:80: error: conflicting types for 'basename'
/usr/include/string.h:387: error: previous declaration of 'basename' was here
Is there a way I can tell gcc to ignore the custom version of basename?