aboutsummaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2009-06-28 21:13:51 +0000
committerUlf Lamping <ulf.lamping@web.de>2009-06-28 21:13:51 +0000
commitb52ffe9b29c5fe851c6f71174bb82f3b6eb66c97 (patch)
tree0cdf673f067ebacf829ebba29319e662426f1a91 /gtk
parentbf9acc100cb8903d8bb255eb94f92785ab28f81f (diff)
fix bug #3439 (thanks to Kovarththanan Rajaratnam), make WS compilable under MSVC2005(EE) again.
Some definitions are not available on MSVC2005. This fix "detects" the MSVC version used, it might still not work with MSVC2008EE though (I guess the required definitions are depending on the Windows SDK installed). svn path=/trunk/; revision=28879
Diffstat (limited to 'gtk')
-rw-r--r--gtk/capture_if_details_dlg_win32.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gtk/capture_if_details_dlg_win32.c b/gtk/capture_if_details_dlg_win32.c
index d4da3dd403..4f9c607e73 100644
--- a/gtk/capture_if_details_dlg_win32.c
+++ b/gtk/capture_if_details_dlg_win32.c
@@ -509,9 +509,11 @@ static const value_string win32_802_11_auth_mode_vals[] = {
{ Ndis802_11AuthModeWPA, "WPA" },
{ Ndis802_11AuthModeWPAPSK, "WPA-PSK (pre shared key)" },
{ Ndis802_11AuthModeWPANone, "WPA (ad hoc)" },
+#if (_MSC_VER != 1400) /* These are not defined in Ntddndis.h in MSVC2005/MSVC2005EE PSDK */
{ Ndis802_11AuthModeWPA2, "WPA2" },
{ Ndis802_11AuthModeWPA2PSK, "WPA2-PSK (pre shared key)" },
-#endif
+#endif
+#endif
{ 0, NULL }
};
@@ -521,8 +523,10 @@ static const value_string win32_802_11_network_type_vals[] = {
#if (_MSC_VER != 1310)
{ Ndis802_11OFDM5, "5-GHz OFDM" },
{ Ndis802_11OFDM24, "2.4-GHz OFDM" },
+#if (_MSC_VER != 1400) /* These are not defined in Ntddndis.h in MSVC2005/MSVC2005EE PSDK */
{ Ndis802_11Automode, "Auto" },
#endif
+#endif
{ 0, NULL }
};
@@ -729,8 +733,10 @@ static const value_string oid_vals[] = {
{ OID_802_11_REMOVE_KEY, "OID_802_11_REMOVE_KEY (write only)" },
{ OID_802_11_ASSOCIATION_INFORMATION, "OID_802_11_ASSOCIATION_INFORMATION (unused)" }, /* XXX */
{ OID_802_11_TEST, "OID_802_11_TEST (write only)" },
+#if (_MSC_VER != 1400) /* These are not defined in Ntddndis.h in MSVC2005/MSVC2005EE PSDK */
{ OID_802_11_CAPABILITY, "OID_802_11_CAPABILITY (unsupp, unused)" },
{ OID_802_11_PMKID, "OID_802_11_PMKID (unsupp, unused)" },
+#endif
/* Token-Ring list is utterly incomplete (contains only the values for MS Loopback Driver) */
{ OID_802_5_PERMANENT_ADDRESS, "OID_802_5_PERMANENT_ADDRESS (unused)" },