aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/menu.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2004-09-11 23:03:36 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2004-09-11 23:03:36 +0000
commit649715738e3ada24172f7ebb4d911baf30459c85 (patch)
tree340e3e52f4aa5df1448894b7c025a4c433a1cadc /gtk/menu.c
parent3c268e2353d0c8e8498d5d71a79ea2969c7b6a98 (diff)
Use _WIN32 rather than WIN32 to determine if we're compiling on Win32;
according to Gisle Vanem, WIN32 isn't a built-in in MSVC, but _WIN32 is. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11972 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/menu.c')
-rw-r--r--gtk/menu.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/gtk/menu.c b/gtk/menu.c
index 7ceb475741..a6bb458cd4 100644
--- a/gtk/menu.c
+++ b/gtk/menu.c
@@ -1041,9 +1041,9 @@ add_menu_recent_capture_file_absolute(gchar *cf_name) {
normalized_cf_name = g_strdup(cf_name);
-#ifdef WIN32
- /* replace all slashes by backslashes */
- g_strdelimit(normalized_cf_name, "/", '\\');
+#ifdef _WIN32
+ /* replace all slashes by backslashes */
+ g_strdelimit(normalized_cf_name, "/", '\\');
#endif
/* get the submenu container item */
@@ -1064,15 +1064,15 @@ add_menu_recent_capture_file_absolute(gchar *cf_name) {
* already in the list or
* this element is above maximum count (too old), remove it */
if (!widget_cf_name ||
-#ifdef WIN32
- /* do a case insensitive compare on win32 */
+#ifdef _WIN32
+ /* do a case insensitive compare on win32 */
#if GLIB_MAJOR_VERSION < 2
- g_strncasecmp(widget_cf_name, normalized_cf_name, 1000) == 0 ||
+ g_strncasecmp(widget_cf_name, normalized_cf_name, 1000) == 0 ||
#else
- g_ascii_strncasecmp(widget_cf_name, normalized_cf_name, 1000) == 0 ||
+ g_ascii_strncasecmp(widget_cf_name, normalized_cf_name, 1000) == 0 ||
#endif
-#else /* WIN32 */
- /* do a case sensitive compare on unix */
+#else /* _WIN32 */
+ /* do a case sensitive compare on unix */
strncmp(widget_cf_name, normalized_cf_name, 1000) == 0 ||
#endif
cnt >= prefs.gui_recent_files_count_max) {