aboutsummaryrefslogtreecommitdiffstats
path: root/ui/gtk/capture_if_dlg.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2015-09-02 14:35:37 -0700
committerGuy Harris <guy@alum.mit.edu>2015-09-02 22:59:10 +0000
commit32e785f81320342058bbee95f84095cd55449c09 (patch)
treeb6d746dcb9da83c97e03889fd97b293ddbd7e2e6 /ui/gtk/capture_if_dlg.c
parentc4538def97942c6e93c4d0965761fc012c5228d7 (diff)
The official #define for 32-bit and 64-bit Windows is _WIN32.
It's _WIN32, with a leading underscore, not WIN32. See, for example: https://sourceforge.net/p/predef/wiki/OperatingSystems/ and https://msdn.microsoft.com/en-us/library/b0084kay.aspx *Some* environments may also define WIN32, but we shouldn't depend on that. Replace all-caps "WIN32" referring to Windows in comments and other text with "Windows" or "Win32". (The two are pretty much equivalent, these days; nobody much cares about Win16, not that we ever ran on it, and 64-bit Windows is just a 64-bitified Win32.) Change-Id: Id327bcd4b1e9baa4f27055eff08c2d9e594d6f70 Reviewed-on: https://code.wireshark.org/review/10367 Petri-Dish: Guy Harris <guy@alum.mit.edu> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui/gtk/capture_if_dlg.c')
-rw-r--r--ui/gtk/capture_if_dlg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/gtk/capture_if_dlg.c b/ui/gtk/capture_if_dlg.c
index c4d40e5936..ce4c6c5f03 100644
--- a/ui/gtk/capture_if_dlg.c
+++ b/ui/gtk/capture_if_dlg.c
@@ -424,7 +424,7 @@ GtkWidget * capture_get_if_icon(interface_t *device)
return pixbuf_to_widget(network_wired_pb_data);
#ifdef HAVE_EXTCAP
case IF_EXTCAP:
-#ifdef WIN32
+#ifdef _WIN32
if (strncmp(device->friendly_name, "USBPcap", 7) == 0) {
return pixbuf_to_widget(network_usb_pb_data);
}