Intial commit
This commit is contained in:
26
prospero/include/string_with_strcasecmp.h
Normal file
26
prospero/include/string_with_strcasecmp.h
Normal file
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
* <string_with_strcasecmp.h>
|
||||
* Includes standard POSIX/ANSI C <string.h>, plus
|
||||
* strcasecmp() prototype.
|
||||
*/
|
||||
#ifdef SOLARIS
|
||||
/* This is for SOLARIS, but may be usefull elsewhere */
|
||||
/* SOLARIS and GCC conspire to exclude strcasecmp */
|
||||
#ifdef _XOPEN_SOURCE
|
||||
#define OLD_XOPEN_SOURCE _XOPEN_SOURCE
|
||||
#else
|
||||
#undef OLD_XOPEN_SOURCE
|
||||
#endif
|
||||
|
||||
#define _XOPEN_SOURCE 1
|
||||
#include "/usr/include/string.h"
|
||||
|
||||
#ifdef OLD_XOPEN_SOURCE
|
||||
#define _XOPEN_SOURCE OLD_XOPEN_SOURCE
|
||||
#undef OLD_XOPEN_SOURCE
|
||||
#else
|
||||
#undef _XOPEN_SOURCE
|
||||
#endif
|
||||
#else /* SOLARIS */
|
||||
#include <string.h>
|
||||
#endif /* SOLARIS */
|
||||
Reference in New Issue
Block a user