summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2004-01-15 20:01:28 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2004-01-15 20:01:28 +0000
commitc6467b968aa69299548bc12699c9f1e5b99825f2 (patch)
tree994c33781b552699a9ad8115c929062b038c898b
parent59559ecce4882bb6addbefcebdc6c92334c74a60 (diff)
If lint is defined, act like _ANSI_LIBRARY was defined. That way
lint gets the prototypes it expects and doesn't get confused by the inline functions. OK deraadt@
-rw-r--r--include/ctype.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/ctype.h b/include/ctype.h
index 6d56b4ffa1c..5814c2813e4 100644
--- a/include/ctype.h
+++ b/include/ctype.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ctype.h,v 1.15 2004/01/13 15:47:24 millert Exp $ */
+/* $OpenBSD: ctype.h,v 1.16 2004/01/15 20:01:27 millert Exp $ */
/* $NetBSD: ctype.h,v 1.14 1994/10/26 00:55:47 cgd Exp $ */
/*
@@ -63,7 +63,7 @@ extern const short *_toupper_tab_;
#define __CTYPE_INLINE static inline
#endif
-#if defined(__GNUC__) || defined(_ANSI_LIBRARY)
+#if defined(__GNUC__) || defined(_ANSI_LIBRARY) || defined(lint)
int isalnum(int);
int isalpha(int);
int iscntrl(int);
@@ -86,9 +86,9 @@ int _tolower(int);
int _toupper(int);
#endif /* !_ANSI_SOURCE && !_POSIX_SOURCE */
-#endif /* __GNUC__ || _ANSI_LIBRARY */
+#endif /* __GNUC__ || _ANSI_LIBRARY || lint */
-#ifndef _ANSI_LIBRARY
+#if !defined(_ANSI_LIBRARY) && !defined(lint)
__CTYPE_INLINE int isalnum(int c)
{
@@ -186,7 +186,7 @@ __CTYPE_INLINE int _toupper(int c)
}
#endif /* !_ANSI_SOURCE && !_POSIX_SOURCE */
-#endif /* !_ANSI_LIBRARY */
+#endif /* !_ANSI_LIBRARY && !lint */
__END_DECLS