skins/AknSkins/sdcinc/SDCCompat.h
changeset 50 c6286dcf6040
equal deleted inserted replaced
43:1951b3078691 50:c6286dcf6040
       
     1 /*
       
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Reader class.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef _SDCCOMPAT_H
       
    19 #define _SDCCOMPAT_H
       
    20 
       
    21 #include <wchar.h>
       
    22 
       
    23 /* _MSC_VER for checking VC6, so that we can keep this library still compilable using `tools'. */
       
    24 #if (defined(__MSVCRT__) || defined(_MSC_VER))
       
    25 #include <windows.h>
       
    26 #define sd_strcasecmp  stricmp
       
    27 #define sd_strncasecmp strnicmp
       
    28 #define sd_wcscasecmp  _wcsicmp
       
    29 #define sd_wcsncasecmp _wcsnicmp
       
    30 
       
    31 #else  /* linux */
       
    32 #define sd_strcasecmp  strcasecmp
       
    33 #define sd_strncasecmp strncasecmp
       
    34 #define sd_wcscasecmp  wcscasecmp
       
    35 #define sd_wcsncasecmp wcsncasecmp
       
    36 #endif
       
    37 
       
    38 const unsigned long long SEC_TO_USEC = 1000000;
       
    39 // 100-nanosecond
       
    40 const unsigned long long USEC_TO_100NANOSEC = 10;
       
    41 
       
    42 #endif