diff --git a/src/s_win32.cpp b/src/s_win32.cpp index 55953de4..b71b09d9 100644 --- a/src/s_win32.cpp +++ b/src/s_win32.cpp @@ -42,6 +42,10 @@ // direct screen access **************************************************************************/ +#if defined(_MSC_VER) && (_MSC_VER < 1200) +# pragma warning(disable: 4201) // nonstandard extension used: nameless struct/union +#endif + #include #if defined(HAVE_CONIO_H) # include diff --git a/src/stdcxx.h b/src/stdcxx.h index c99b5d83..0f90e1b1 100644 --- a/src/stdcxx.h +++ b/src/stdcxx.h @@ -98,14 +98,14 @@ class bad_alloc { }; # define __USE_MALLOC # define enable upx_stl_enable #endif -#ifdef _MSC_VER +#if defined(_MSC_VER) # pragma warning(push) # pragma warning(disable: 4018 4100 4663) #endif #include -#ifdef _MSC_VER +#if defined(_MSC_VER) # pragma warning(pop) #endif diff --git a/src/tailor.h b/src/tailor.h index 82c434bd..a9ca33a4 100644 --- a/src/tailor.h +++ b/src/tailor.h @@ -152,7 +152,6 @@ # define SIGTYPEENTRY __cdecl # define HAVE_IO_H 1 # define HAVE_MALLOC_H 1 -# define HAVE_UNISTD_H 1 # define HAVE_UTIME_H 1 # define HAVE_MODE_T 1 # define HAVE_CHMOD 1