mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-27 09:39:22 +00:00
Use Winapi on both cygwin and mingw32 to share more code between both.
This commit is contained in:
1 parent
d68d01573b
commit
7e518ca84f
30 files changed
+1984
-1670
No files matched your search
+9
-1
@@ -182,7 +182,7 @@ case "$host_os" in
|
||||
netbsd*) host_kernel=netbsd ;;
|
||||
solaris*) host_kernel=illumos ;;
|
||||
darwin*) host_kernel=xnu ;;
|
||||
cygwin) host_kernel=windows ;;
|
||||
cygwin | windows* | mingw32*) host_kernel=windows ;;
|
||||
esac
|
||||
|
||||
case "$platform" in
|
||||
@@ -333,6 +333,14 @@ AC_C_BIGENDIAN
|
||||
AC_CHECK_SIZEOF(void *)
|
||||
AC_CHECK_SIZEOF(long)
|
||||
|
||||
case "$host_os" in
|
||||
cygwin | windows* | mingw32*)
|
||||
HOST_CPPFLAGS="$HOST_CPPFLAGS -DUNICODE=1 -D_WIN32_WINNT=0x0500"
|
||||
CPPFLAGS="$CPPFLAGS -DUNICODE=1 -D_WIN32_WINNT=0x0500"
|
||||
AC_CHECK_SIZEOF(TCHAR,,[#include <windows.h>])
|
||||
;;
|
||||
esac
|
||||
|
||||
grub_apple_cc
|
||||
if test x$grub_cv_apple_cc = xyes ; then
|
||||
HOST_CPPFLAGS="$HOST_CPPFLAGS -fnested-functions"
|
||||
|
||||
Reference in new issue
Block a user