From 303bc90f720afc205ac8bc0194d5ffee5b72e2be Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Sun, 16 Sep 2001 09:15:27 +0000 Subject: [PATCH] Add prototypes for strcasecmp and strncasecmp if we use our own implementation. svn path=/trunk/yasm/; revision=160 --- libyasm/util.h | 4 +++- src/util.h | 4 +++- util.h | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/libyasm/util.h b/libyasm/util.h index d6741dac..3cc8d863 100644 --- a/libyasm/util.h +++ b/libyasm/util.h @@ -1,4 +1,4 @@ -/* $Id: util.h,v 1.7 2001/09/16 09:13:00 peter Exp $ +/* $Id: util.h,v 1.8 2001/09/16 09:15:27 peter Exp $ * Defines prototypes for replacement functions if needed. * * Copyright (C) 2001 Peter Johnson @@ -39,6 +39,8 @@ unsigned long strtoul(const char *nptr, char **endptr, int base); # define strcasecmp(x, y) strncmpi(x, y) # else # define USE_OUR_OWN_STRCASECMP +int strcasecmp(const char *s1, const char *s2); +int strncasecmp(const char *s1, const char *s2, size_t n); # endif #endif diff --git a/src/util.h b/src/util.h index d6741dac..3cc8d863 100644 --- a/src/util.h +++ b/src/util.h @@ -1,4 +1,4 @@ -/* $Id: util.h,v 1.7 2001/09/16 09:13:00 peter Exp $ +/* $Id: util.h,v 1.8 2001/09/16 09:15:27 peter Exp $ * Defines prototypes for replacement functions if needed. * * Copyright (C) 2001 Peter Johnson @@ -39,6 +39,8 @@ unsigned long strtoul(const char *nptr, char **endptr, int base); # define strcasecmp(x, y) strncmpi(x, y) # else # define USE_OUR_OWN_STRCASECMP +int strcasecmp(const char *s1, const char *s2); +int strncasecmp(const char *s1, const char *s2, size_t n); # endif #endif diff --git a/util.h b/util.h index d6741dac..3cc8d863 100644 --- a/util.h +++ b/util.h @@ -1,4 +1,4 @@ -/* $Id: util.h,v 1.7 2001/09/16 09:13:00 peter Exp $ +/* $Id: util.h,v 1.8 2001/09/16 09:15:27 peter Exp $ * Defines prototypes for replacement functions if needed. * * Copyright (C) 2001 Peter Johnson @@ -39,6 +39,8 @@ unsigned long strtoul(const char *nptr, char **endptr, int base); # define strcasecmp(x, y) strncmpi(x, y) # else # define USE_OUR_OWN_STRCASECMP +int strcasecmp(const char *s1, const char *s2); +int strncasecmp(const char *s1, const char *s2, size_t n); # endif #endif -- 2.40.0