fix sockaddr_storage problem for MSVC 7.1 (hmmm, maybe it's a platform SDK issue...
authorUlf Lamping <ulf.lamping@web.de>
Sat, 6 Jan 2007 00:48:11 +0000 (00:48 -0000)
committerUlf Lamping <ulf.lamping@web.de>
Sat, 6 Jan 2007 00:48:11 +0000 (00:48 -0000)
svn path=/trunk/; revision=20331

capture_wpcap_packet.c
gtk/capture_if_details_dlg.c

index d055a72d5904c4bb79318f2ea6a2f652deec21cb..901e7f1b1d1a2c0cd70f543c902bfe12ca6974cb 100644 (file)
@@ -64,11 +64,13 @@ typedef unsigned short eth_sa_family_t;
                               ETH_SS_PAD1SIZE + ETH_SS_ALIGNSIZE))
 
 /* sockaddr_storage problem with different MSVC versions
- * - MSVC 6 (1200) doesn't define this
- * - MSVC 7 (1300) unknown
- * - MSVC 8 (1400) does */
+ * - MSVC 6   (1200) doesn't define this
+ * - MSVC 7   (1300) unknown
+ * - MSVC 7.1 (1310) does
+ * - MSVC 8   (1400) does */
 /* we might need to tweak this #if, see version_info for _MSC_VER values */
-#if _MSC_VER < 1400
+/* XXX - is this more of a Platform SDK issue? */
+#if _MSC_VER < 1310
 struct sockaddr_storage {
     eth_sa_family_t  __ss_family;     /* address family */
     /* Following fields are implementation specific */
index 28af9e19b308ee637210bbbcb065692f59522170..97e7a4fcf16b33f0f5e2e922310e5ff0a05b848a 100644 (file)
@@ -72,11 +72,13 @@ typedef unsigned short eth_sa_family_t;
                               ETH_SS_PAD1SIZE + ETH_SS_ALIGNSIZE))
 
 /* sockaddr_storage problem with different MSVC versions
- * - MSVC 6 (1200) doesn't define this
- * - MSVC 7 (1300) unknown
- * - MSVC 8 (1400) does */
+ * - MSVC 6   (1200) doesn't define this
+ * - MSVC 7   (1300) unknown
+ * - MSVC 7.1 (1310) does
+ * - MSVC 8   (1400) does */
 /* we might need to tweak this #if, see version_info for _MSC_VER values */
-#if _MSC_VER < 1400
+/* XXX - is this more of a Platform SDK issue? */
+#if _MSC_VER < 1310
 struct sockaddr_storage {
     eth_sa_family_t  __ss_family;     /* address family */
     /* Following fields are implementation specific */