Determine the need for mingw-related stubs at compile time rather than

using not very significant $target_os.
This commit is contained in:
Vladimir Serbinenko 2013-12-16 14:18:15 +01:00
parent fadddc260a
commit 252a289cb3
4 changed files with 16 additions and 12 deletions

View file

@ -377,9 +377,11 @@ grub_uint64_t EXPORT_FUNC(grub_divmod64) (grub_uint64_t n,
grub_uint64_t d,
grub_uint64_t *r);
#if !defined(GRUB_UTIL) && NEED_REGISTER_FRAME_INFO
#if (defined (__MINGW32__) || defined (__CYGWIN__)) && !defined(GRUB_UTIL)
void EXPORT_FUNC (__register_frame_info) (void);
void EXPORT_FUNC (__deregister_frame_info) (void);
void EXPORT_FUNC (___chkstk_ms) (void);
void EXPORT_FUNC (__chkstk_ms) (void);
#endif
/* Inline functions. */