[GTK][WK2] WebKit2 does not build if gtk-unix-printing-3.0 is not available
[WebKit-https.git] / Source / WebKit2 / WebProcess / WebPage / gtk / WebPrintOperationGtk.cpp
index 0ba9b70..b0440cf 100644 (file)
@@ -367,9 +367,10 @@ PassRefPtr<WebPrintOperationGtk> WebPrintOperationGtk::create(WebPage* page, con
 {
 #ifdef HAVE_GTK_UNIX_PRINTING
     return adoptRef(new WebPrintOperationGtkUnix(page, printInfo));
-#endif
-#ifdef G_OS_WIN32
+#elif defined(G_OS_WIN32)
     return adoptRef(new WebPrintOperationGtkWin32(page, printInfo));
+#else
+    return 0;
 #endif
 }