Use %I64 and not %ll when using OS printf if compiling for windows.
This commit is contained in:
parent
d218ec9738
commit
18e76955be
11 changed files with 77 additions and 36 deletions
|
@ -42,6 +42,14 @@ char *grub_make_system_path_relative_to_its_root (const char *path)
|
|||
int
|
||||
grub_util_device_is_mapped (const char *dev);
|
||||
|
||||
#ifdef __MINGW32__
|
||||
#define GRUB_HOST_PRIuLONG_LONG "I64u"
|
||||
#define GRUB_HOST_PRIxLONG_LONG "I64x"
|
||||
#else
|
||||
#define GRUB_HOST_PRIuLONG_LONG "llu"
|
||||
#define GRUB_HOST_PRIxLONG_LONG "llx"
|
||||
#endif
|
||||
|
||||
void * EXPORT_FUNC(xmalloc) (grub_size_t size) WARN_UNUSED_RESULT;
|
||||
void * EXPORT_FUNC(xrealloc) (void *ptr, grub_size_t size) WARN_UNUSED_RESULT;
|
||||
char * EXPORT_FUNC(xstrdup) (const char *str) WARN_UNUSED_RESULT;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue