From b63d9b1f06c8a244950fff8e2c98efa57f7c7f0f Mon Sep 17 00:00:00 2001 From: caro Date: Mon, 7 Dec 2009 17:13:37 +0000 Subject: [PATCH] * Include winsock2.h in eet_image.c for htonl definition on Windows. * Fix Visual Studio project files git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eet@44249 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- ChangeLog | 5 +++++ configure.ac | 3 +++ src/lib/eet_image.c | 4 ++++ win32/vs8/eet.vcproj | 5 +++-- win32/vs8/libeet.vcproj | 4 ++-- win32/vs9/eet.vcproj | 5 +++-- win32/vs9/libeet.vcproj | 4 ++-- 7 files changed, 22 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6981be7..9a2b833 100644 --- a/ChangeLog +++ b/ChangeLog @@ -274,3 +274,8 @@ * Fix error when retrieving a different float type than the stored one. * Reduce convertion with a little memory overhead. + +2009-12-07 Vincent Torri + + * Include winsock2.h in eet_image.c for htonl definition on Windows. + * Fix Visual Studio project files diff --git a/configure.ac b/configure.ac index cbc615f..f91e2fc 100644 --- a/configure.ac +++ b/configure.ac @@ -338,6 +338,9 @@ case "$host_os" in EET_CPPFLAGS="-D_WIN32_WCE=0x0420" EET_CFLAGS="-mwin32" ;; + mingw*) + EET_CPPFLAGS="-D_WIN32_WINNT=0x0500" + ;; esac AC_SUBST(EET_CPPFLAGS) AC_SUBST(EET_CFLAGS) diff --git a/src/lib/eet_image.c b/src/lib/eet_image.c index 3615072..cfc3a8b 100644 --- a/src/lib/eet_image.c +++ b/src/lib/eet_image.c @@ -6,6 +6,10 @@ # include #endif +#ifdef _WIN32 +# include +#endif + #ifdef HAVE_ALLOCA_H # include #elif defined __GNUC__ diff --git a/win32/vs8/eet.vcproj b/win32/vs8/eet.vcproj index 22b47c2..a93e891 100644 --- a/win32/vs8/eet.vcproj +++ b/win32/vs8/eet.vcproj @@ -62,7 +62,7 @@