Print this page
remove support for non-ANSI compilation
@@ -18,16 +18,15 @@
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
+ * Copyright 2014 Garrett D'Amore <garrett@damore.org>
+ *
* Copyright (c) 1995, 1996, by Sun Microsystems, Inc.
* All rights reserved.
*/
-/*
- * Copyright 2013 Garrett D'Amore <garrett@damore.org>
- */
#ifndef _STRINGS_H
#define _STRINGS_H
#include <sys/types.h>
@@ -39,12 +38,10 @@
#ifdef __cplusplus
extern "C" {
#endif
-#if defined(__STDC__)
-
extern int bcmp(const void *, const void *, size_t);
extern void bcopy(const void *, void *, size_t);
extern void bzero(void *, size_t);
extern char *index(const char *, int);
@@ -72,31 +69,10 @@
extern int strcasecmp_l(const char *, const char *, locale_t);
extern int strncasecmp_l(const char *, const char *, size_t, locale_t);
#endif /* defined(_XPG7) */
#endif /* defined(_XPG4_2) && !defined(__EXTENSIONS__) */
-#else
-
-extern int bcmp();
-extern void bcopy();
-extern void bzero();
-
-extern char *index();
-extern char *rindex();
-
-#if defined(_XPG4_2) && !defined(__EXTENSIONS__)
-extern int ffs();
-extern int strcasecmp();
-extern int strncasecmp();
-#if defined(_XPG7)
-extern int strcasecmp_l();
-extern int strncasecmp_l();
-#endif
-#endif /* defined(_XPG4_2) && !defined(__EXTENSIONS__) */
-
-#endif /* __STDC__ */
-
#ifdef __cplusplus
}
#endif
#endif /* _STRINGS_H */