diff --git a/legacy/eet/ChangeLog b/legacy/eet/ChangeLog index 6981be7214..9a2b8330f1 100644 --- a/legacy/eet/ChangeLog +++ b/legacy/eet/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/legacy/eet/configure.ac b/legacy/eet/configure.ac index cbc615f3d0..f91e2fc85b 100644 --- a/legacy/eet/configure.ac +++ b/legacy/eet/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/legacy/eet/src/lib/eet_image.c b/legacy/eet/src/lib/eet_image.c index 361507259f..cfc3a8b7f2 100644 --- a/legacy/eet/src/lib/eet_image.c +++ b/legacy/eet/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/legacy/eet/win32/vs8/eet.vcproj b/legacy/eet/win32/vs8/eet.vcproj index 22b47c22b1..a93e891285 100644 --- a/legacy/eet/win32/vs8/eet.vcproj +++ b/legacy/eet/win32/vs8/eet.vcproj @@ -62,7 +62,7 @@