Usage of strcasecmp gives implicit function warning even with

2023-07-02 Thread Eric Erickson
I'm a bit perplexed here. I'm using XL C and the strcasecmp function. I've included 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 CCN4421 ... I

Re: Usage of strcasecmp gives implicit function warning even with

2023-07-02 Thread Charles Mills
Not sure what is relevant to your situation and what is not, but FWIW (for C++) I use the following and get no messages on strcasecmp(). #define _LARGE_TIME_API #define _OPEN_SYS_UNLOCKED_EXT 1 #define _POSIX_SOURCE #define _XOPEN_SOURCE_EXTENDED 1 #define

Re: Usage of strcasecmp gives implicit function warning even with

2023-07-03 Thread David Crayford
|"#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

Re: Usage of strcasecmp gives implicit function warning even with

2023-07-03 Thread Eric Erickson
The #define of _POSIX_SOURCE fixed it. Darn documentation! -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN