chiark / gitweb /
Compile to nothing in absence of GTK, for the benefit of parent packages
[mgLib] / cancel.c
index c7605ddcc9b95ea96a21bd3efd1651b5c3f1d065..d29b823b82c9e56001b0b6de6da5af3228f50d05 100644 (file)
--- a/cancel.c
+++ b/cancel.c
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: cancel.c,v 1.1 1998/12/11 09:44:21 mdw Exp $
+ * $Id: cancel.c,v 1.2 1999/03/25 23:36:07 mdw Exp $
  *
  * Handle Escape keypresses, directing them to cancel buttons
  *
 /*----- Revision history --------------------------------------------------* 
  *
  * $Log: cancel.c,v $
+ * Revision 1.2  1999/03/25 23:36:07  mdw
+ * Compile to nothing in absence of GTK, for the benefit of parent packages
+ * which contain non-GTK-dependent parts.
+ *
  * Revision 1.1  1998/12/11 09:44:21  mdw
  * Initial version.
  *
  */
 
+#ifdef HAVE_GTK
+
 /*----- Header files ------------------------------------------------------*/
 
 #include <gtk/gtk.h>
@@ -73,3 +79,7 @@ void cancel(GtkWindow *win, GtkWidget *w)
 }
 
 /*----- That's all, folks -------------------------------------------------*/
+
+#else
+  int mgLib_cancel = 0;
+#endif