Ignore:
Timestamp:
Jun 26, 2001, 1:15:36 AM (24 years ago)
Author:
bird
Message:

inline fix. extern C. static wrapper.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/win/wine/unicode.h

    r5604 r6103  
    1212#if !defined(OS2_INCLUDED) && !defined(__WIN32TYPE_H__)
    1313#include <windef.h>
    14 #endif
    15 
    16 #ifndef __cplusplus
    17 #undef inline
    18 #define inline
    1914#endif
    2015
     
    5348    struct dbcs_table dbcs;
    5449};
     50
     51#ifdef __cplusplus
     52extern "C" {
     53#endif
     54
     55#if defined(__IBMC__) || defined(__IBMCPP__)
     56#define static
     57#endif
    5558
    5659extern const union cptable *cp_get_table( unsigned int codepage );
     
    9497}
    9598
    96 static inline WCHAR *strcpyW( WCHAR *dst, const WCHAR *src ) 
     99static inline WCHAR *strcpyW( WCHAR *dst, const WCHAR *src )
    97100{
    98101#if defined(__i386__) && defined(__GNUC__)
     
    116119}
    117120
    118 static inline int strcmpW( const WCHAR *str1, const WCHAR *str2 ) 
     121static inline int strcmpW( const WCHAR *str1, const WCHAR *str2 )
    119122{
    120123    while (*str1 && (*str1 == *str2)) { str1++; str2++; }
     
    148151    return NULL;
    149152}
    150  
     153
    151154static inline WCHAR *strrchrW( const WCHAR *str, WCHAR ch )
    152155{
     
    154157    for ( ; *str; str++) if (*str == ch) ret = (WCHAR *)str;
    155158    return ret;
    156 }               
     159}
    157160
    158161static inline WCHAR *strlwrW( WCHAR *str )
     
    162165      *str = tolowerW(*str);
    163166      str++;
    164     } 
     167    }
    165168    return ret;
    166169}
     
    172175      *str = toupperW(*str);
    173176      str++;
    174     } 
     177    }
    175178    return ret;
    176179}
     
    181184extern unsigned short get_char_typeW( WCHAR ch );
    182185
     186
     187#if defined(__IBMC__) || defined(__IBMCPP__)
     188#undef static
     189#endif
     190
     191#ifdef __cplusplus
     192}
     193#endif
     194
    183195#endif //RC_INVOKED
    184196
Note: See TracChangeset for help on using the changeset viewer.