From 9bc647e2b23bcfd69a0077c0717fbc454c919a57 Mon Sep 17 00:00:00 2001 From: Gary Lin Date: Fri, 7 Apr 2017 17:14:09 +0800 Subject: Cryptlib: implement strcmp() and strcasecmp() strcmp() and strcasecmp() are widely used in openssl. Implement those two functions to eliminate the gcc warnings and the potential crash. Signed-off-by: Gary Lin --- Cryptlib/Include/CrtLibSupport.h | 1 - 1 file changed, 1 deletion(-) (limited to 'Cryptlib/Include/CrtLibSupport.h') diff --git a/Cryptlib/Include/CrtLibSupport.h b/Cryptlib/Include/CrtLibSupport.h index 42c056f0..6312e5cb 100644 --- a/Cryptlib/Include/CrtLibSupport.h +++ b/Cryptlib/Include/CrtLibSupport.h @@ -374,7 +374,6 @@ extern FILE *stdout; #define strncpy(strDest,strSource,count) AsciiStrnCpy(strDest,strSource,(UINTN)count) #define strcat(strDest,strSource) AsciiStrCat(strDest,strSource) #define strchr(str,ch) (char *)(ScanMem8((CHAR8 *)str,AsciiStrSize((CHAR8 *)str),ch)) -#define strcmp(string1,string2) strcmpa((CHAR8 *)string1,(CHAR8 *)string2) #define strncmp(string1,string2,count) (int)(AsciiStrnCmp(string1,string2,(UINTN)(count))) #define localtime(timer) NULL #define assert(expression) -- cgit v1.2.3