mirror of
https://github.com/reactos/reactos.git
synced 2026-09-12 20:59:19 +08:00
Instead of copying those functions into every host tool, which needs it (as we did previously), we can now implement them all in this library and link the host tools to it. If USE_HOST_WCSFUNCS is not defined, the "wcsfuncs.h" file will define them to the CRT functions (so this library does not create overhead, when the code is built for the target platform) See issue #3285 for more details. svn path=/trunk/; revision=34050
25 lines
667 B
C
25 lines
667 B
C
/*
|
|
PROJECT: ReactOS
|
|
LICENSE: GPL v2 or any later version
|
|
FILE: include/host/wcsfuncs.h
|
|
PURPOSE: Header for the "host_wcsfuncs" static library
|
|
COPYRIGHT: Copyright 2008 Colin Finck <mail@colinfinck.de>
|
|
*/
|
|
|
|
#ifndef _HOST_WCSFUNCS_H
|
|
#define _HOST_WCSFUNCS_H
|
|
|
|
#ifdef USE_HOST_WCSFUNCS
|
|
/* Function prototypes */
|
|
SIZE_T utf16_wcslen(PCWSTR str);
|
|
PWSTR utf16_wcschr(PWSTR str, WCHAR c);
|
|
INT utf16_wcsncmp(PCWSTR string1, PCWSTR string2, size_t count);
|
|
#else
|
|
/* Define the utf16_ functions to the CRT functions */
|
|
#define utf16_wcslen wcslen
|
|
#define utf16_wcschr wcschr
|
|
#define utf16_wcsncmp wcsncmp
|
|
#endif
|
|
|
|
#endif
|