Another fix for building with MSVC2005.

The previous fixes in r37728 and r37730 did build a wireshark which was
unable to use the native windows file dialog (GetOpenFileName).

svn path=/trunk/; revision=38299
This commit is contained in:
Stig Bjørlykke 2011-08-01 12:38:58 +00:00
parent 391a3ebe36
commit ffd28912d3
3 changed files with 8 additions and 3 deletions

View File

@ -238,9 +238,6 @@
#if _MSC_VER == 1500 || _MSC_VER == 1600
#define NTDDI_VERSION NTDDI_WIN2K
#define _WIN32_WINNT _WIN32_WINNT_WIN2K
#else
/* IsDebuggerPresent() and AttachConsole() needs this #define! */
#define _WIN32_WINNT 0x0500
#endif
#define strncasecmp strnicmp

View File

@ -41,6 +41,10 @@
#include "except.h"
#ifdef _WIN32
#if _MSC_VER < 1500
/* IsDebuggerPresent() needs this #define! */
#define _WIN32_WINNT 0x0400
#endif
#include <windows.h>
#include "exceptions.h"
#endif

View File

@ -52,6 +52,10 @@
#endif
#ifdef _WIN32 /* Needed for console I/O */
#if _MSC_VER < 1500
/* AttachConsole() needs this #define! */
#define _WIN32_WINNT 0x0501
#endif
#include <fcntl.h>
#include <conio.h>
#endif