2 #if defined (ACE_HAS_WCHAR)
3 # include "ace/OS_NS_wchar.h"
4 #endif /* ACE_HAS_WCHAR */
6 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
9 ACE_OS::strcasecmp (const char *s, const char *t)
11 #if defined (ACE_LACKS_STRCASECMP)
12 return ACE_OS::strcasecmp_emulation (s, t);
13 #elif defined (ACE_STRCASECMP_EQUIVALENT)
14 return ACE_STRCASECMP_EQUIVALENT (s, t);
15 #else /* ACE_LACKS_STRCASECMP */
16 return ::strcasecmp (s, t);
17 #endif /* ACE_LACKS_STRCASECMP */
20 #if defined (ACE_HAS_WCHAR)
22 ACE_OS::strcasecmp (const wchar_t *s, const wchar_t *t)
24 # if defined (ACE_LACKS_WCSICMP)
25 return ACE_OS::wcsicmp_emulation (s, t);
26 # else /* ACE_LACKS_WCSICMP */
27 return ::_wcsicmp (s, t);
28 # endif /* ACE_LACKS_WCSICMP */
30 #endif /* ACE_HAS_WCHAR */
33 ACE_OS::strncasecmp (const char *s, const char *t, size_t len)
35 #if defined (ACE_LACKS_STRCASECMP)
36 return ACE_OS::strncasecmp_emulation (s, t, len);
37 #elif defined (ACE_STRNCASECMP_EQUIVALENT)
38 return ACE_STRNCASECMP_EQUIVALENT (s, t, len);
39 #else /* ACE_LACKS_STRCASECMP */
40 return ::strncasecmp (s, t, len);
41 #endif /* ACE_LACKS_STRCASECMP */
44 #if defined (ACE_HAS_WCHAR)
46 ACE_OS::strncasecmp (const wchar_t *s, const wchar_t *t, size_t len)
48 #if defined (ACE_LACKS_WCSNICMP)
49 return ACE_OS::wcsnicmp_emulation (s, t, len);
50 #else /* ACE_LACKS_WCSNICMP */
51 return ::_wcsnicmp (s, t, len);
52 #endif /* ACE_LACKS_WCSNICMP */
54 #endif /* ACE_HAS_WCHAR */
56 ACE_END_VERSIONED_NAMESPACE_DECL