Use G_OS_WIN32, the glib-proper way to check for WIN32.
[claws.git] / src / plugins / spamassassin / spamassassin_gtk.c
index d573f1f1671c2c5e782c59ead682aec28c390792..d0439a6daf38e4896d1cc4c9ec2fba76eb8d6005 100644 (file)
@@ -89,7 +89,7 @@ struct Transport transports[] = {
        /*{ N_("Disabled"),     SPAMASSASSIN_DISABLED,                  PAGE_DISABLED, 0 },*/
        { N_("Localhost"),      SPAMASSASSIN_TRANSPORT_LOCALHOST,       PAGE_NETWORK, 0 },
        { N_("TCP"),            SPAMASSASSIN_TRANSPORT_TCP,             PAGE_NETWORK, NETWORK_HOSTNAME },
-#ifndef _WIN32
+#ifndef G_OS_WIN32
        { N_("Unix Socket"),    SPAMASSASSIN_TRANSPORT_UNIX,            PAGE_UNIX,    0 },
 #endif
 };
@@ -524,7 +524,7 @@ static void spamassassin_create_widget_func(PrefsPage * _page,
        page->whitelist_ab = whitelist_ab_checkbtn;
        page->whitelist_ab_folder_combo = whitelist_ab_folder_combo;
 
-#ifdef _WIN32
+#ifdef G_OS_WIN32
        /* no Unix socket in Windows, and in case our config comes from Unix, switch to TCP */
        if (config->transport == SPAMASSASSIN_TRANSPORT_UNIX)
                config->transport = SPAMASSASSIN_TRANSPORT_TCP;