Do not use TCHAR string functions as they are not available on cygwin.

This commit is contained in:
Vladimir Serbinenko 2013-12-14 23:25:30 +01:00
parent 4bad23a15f
commit 6d3cfe5063
3 changed files with 41 additions and 15 deletions

View file

@ -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)