Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-02-21 10:00:35

0001 /***********************************************************************************\
0002 * (c) Copyright 1998-2019 CERN for the benefit of the LHCb and ATLAS collaborations *
0003 *                                                                                   *
0004 * This software is distributed under the terms of the Apache version 2 licence,     *
0005 * copied verbatim in the file "LICENSE".                                            *
0006 *                                                                                   *
0007 * In applying this licence, CERN does not waive the privileges and immunities       *
0008 * granted to it by virtue of its status as an Intergovernmental Organization        *
0009 * or submit itself to any jurisdiction.                                             *
0010 \***********************************************************************************/
0011 #ifndef GAUDIKERNEL_STRCASECMP_H
0012 #define GAUDIKERNEL_STRCASECMP_H
0013 
0014 #ifdef _WIN32
0015 #  include <cstring>
0016 inline int strcasecmp( const char* s1, const char* s2 ) { return ::_stricmp( s1, s2 ); }
0017 inline int strncasecmp( const char* s1, const char* s2, size_t n ) { return ::_strnicmp( s1, s2, n ); }
0018 #else // Unix uses string.h
0019 #  include <string.h>
0020 #endif
0021 
0022 #endif // GAUDIKERNEL_STRCASECMP_H