* include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.

Migrate all explicit defines to this new one.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2013-09-24 19:17:24 +02:00
parent 43b1c99d53
commit bab7b1ebeb
4 changed files with 13 additions and 6 deletions

View file

@ -29,10 +29,12 @@
typedef HANDLE grub_util_fd_t;
#define GRUB_UTIL_FD_INVALID INVALID_HANDLE_VALUE
#define GRUB_UTIL_FD_IS_VALID(x) ((x) != GRUB_UTIL_FD_INVALID)
#define GRUB_UTIL_FD_STAT_IS_FUNCTIONAL 0
#else
typedef int grub_util_fd_t;
#define GRUB_UTIL_FD_INVALID -1
#define GRUB_UTIL_FD_IS_VALID(x) ((x) >= 0)
#define GRUB_UTIL_FD_STAT_IS_FUNCTIONAL 1
#endif
grub_util_fd_t