Do not use TCHAR string functions as they are not available on cygwin.
This commit is contained in:
parent
4bad23a15f
commit
6d3cfe5063
3 changed files with 41 additions and 15 deletions
|
@ -33,11 +33,14 @@
|
|||
#include <windows.h>
|
||||
#include <winioctl.h>
|
||||
|
||||
#if SIZEOF_TCHAR == 1
|
||||
#define tclen strlen
|
||||
#elif SIZEOF_TCHAR == 2
|
||||
#define tclen wcslen
|
||||
#endif
|
||||
static size_t
|
||||
tclen (const TCHAR *s)
|
||||
{
|
||||
const TCHAR *s0 = s;
|
||||
while (*s)
|
||||
s++;
|
||||
return s - s0;
|
||||
}
|
||||
|
||||
char *
|
||||
grub_make_system_path_relative_to_its_root (const char *path)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue