From 3415763e7446375d00a136a59e7d8533610f1670 Mon Sep 17 00:00:00 2001 From: abv Date: Tue, 21 Oct 2014 09:20:54 +0400 Subject: [PATCH] 0025401: Some warnings could be eliminated Do not redefine macro "strcasecmp" on Windows (MSVC) if it is already defined. Some useless declarations and comments removed. --- src/Standard/Standard_CString.hxx | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/Standard/Standard_CString.hxx b/src/Standard/Standard_CString.hxx index 38c9ed0540..5e9fb14af5 100644 --- a/src/Standard/Standard_CString.hxx +++ b/src/Standard/Standard_CString.hxx @@ -12,13 +12,7 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//============================================================================ -//==== Titre: Standard_CString.hxx -//==== Role : The headr file of primitve type "CString" from package "Standard" -//==== -//==== Implementation: This is a primitive type implementadef with typedef -//==== typedef char* Standard_CString; -//============================================================================ +//!@file Functions working with plain C strings #ifndef _Standard_CString_HeaderFile # define _Standard_CString_HeaderFile @@ -27,7 +21,7 @@ # include # endif -# ifdef _MSC_VER +# if defined(_MSC_VER) && ! defined(strcasecmp) # define strcasecmp _stricmp # endif @@ -38,10 +32,6 @@ # include # endif - -class Handle_Standard_Type; - -inline Standard_Integer Abs (const Standard_Integer); inline Standard_Boolean IsSimilar(const Standard_CString One ,const Standard_CString Two); __Standard_API Standard_Integer HashCode (const Standard_CString, -- 2.39.5