|"#define _XOPEN_SOURCE_EXTENDED 1" needs to b at the top of the source file and work work if interleaved. I would define all compiler flags in the build and not as pre-processor #define declarations.|

On 3/7/2023 9:38 am, Eric Erickson wrote:
I'm a bit perplexed here.

I'm using XL C and the strcasecmp function. I've included <strings.h> and added 
the #define for  _XOPEN_SOURCE_EXTENDED as  documented in the library reference, as 
shown below. But I still get a warning message for it.

#define _XOPEN_SOURCE_EXTENDED 1
#include <strings.h>

CCN4421 ...   Implicit function declaration for function "strcasecmp".

Don't understand why? I know its just a nit warning, but I like to resolve as 
many of these as possible just to get the compiles as clean as possible.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email [email protected]  with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to