From 53fab670ea6fe2d5b0bc39c4db9a885a5e69adda Mon Sep 17 00:00:00 2001 From: "Janet B. Anderson" Date: Fri, 12 Jun 1998 19:28:07 +0000 Subject: [PATCH] Define strncasecmp for non unix builds only. --- src/libCom/calc/sCalcPostfix.c | 2 ++ src/libCom/sCalcPostfix.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/libCom/calc/sCalcPostfix.c b/src/libCom/calc/sCalcPostfix.c index f8d747db4..c8b71bbc8 100644 --- a/src/libCom/calc/sCalcPostfix.c +++ b/src/libCom/calc/sCalcPostfix.c @@ -267,6 +267,7 @@ static struct expression_element fetch_string_element = { "AA", 0, 0, OPERAND, SFETCH, /* fetch var */ }; +#if !defined(UNIX) static int strncasecmp(char *s1, char *s2, size_t n) { short i; @@ -276,6 +277,7 @@ static int strncasecmp(char *s1, char *s2, size_t n) } return(0); } +#endif /* * FIND_ELEMENT * diff --git a/src/libCom/sCalcPostfix.c b/src/libCom/sCalcPostfix.c index f8d747db4..c8b71bbc8 100644 --- a/src/libCom/sCalcPostfix.c +++ b/src/libCom/sCalcPostfix.c @@ -267,6 +267,7 @@ static struct expression_element fetch_string_element = { "AA", 0, 0, OPERAND, SFETCH, /* fetch var */ }; +#if !defined(UNIX) static int strncasecmp(char *s1, char *s2, size_t n) { short i; @@ -276,6 +277,7 @@ static int strncasecmp(char *s1, char *s2, size_t n) } return(0); } +#endif /* * FIND_ELEMENT *