mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-08 14:17:06 +03:00
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.
This commit is contained in:
@@ -12,13 +12,7 @@
|
|||||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||||
// commercial license or contractual agreement.
|
// commercial license or contractual agreement.
|
||||||
|
|
||||||
//============================================================================
|
//!@file Functions working with plain C strings
|
||||||
//==== 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;
|
|
||||||
//============================================================================
|
|
||||||
|
|
||||||
#ifndef _Standard_CString_HeaderFile
|
#ifndef _Standard_CString_HeaderFile
|
||||||
# define _Standard_CString_HeaderFile
|
# define _Standard_CString_HeaderFile
|
||||||
@@ -27,7 +21,7 @@
|
|||||||
# include <Standard_TypeDef.hxx>
|
# include <Standard_TypeDef.hxx>
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
# ifdef _MSC_VER
|
# if defined(_MSC_VER) && ! defined(strcasecmp)
|
||||||
# define strcasecmp _stricmp
|
# define strcasecmp _stricmp
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
@@ -38,10 +32,6 @@
|
|||||||
# include <Standard_Integer.hxx>
|
# include <Standard_Integer.hxx>
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
|
||||||
class Handle_Standard_Type;
|
|
||||||
|
|
||||||
inline Standard_Integer Abs (const Standard_Integer);
|
|
||||||
inline Standard_Boolean IsSimilar(const Standard_CString One
|
inline Standard_Boolean IsSimilar(const Standard_CString One
|
||||||
,const Standard_CString Two);
|
,const Standard_CString Two);
|
||||||
__Standard_API Standard_Integer HashCode (const Standard_CString,
|
__Standard_API Standard_Integer HashCode (const Standard_CString,
|
||||||
|
Reference in New Issue
Block a user