chiark
/
gitweb
/
~mdw
/
mgLib
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Compile to nothing in absence of GTK, for the benefit of parent packages
[mgLib]
/
msg.c
diff --git
a/msg.c
b/msg.c
index 2ff054855aa8ad1528a8b99d487ecc89551a3833..ff317e952f8ec1e4fcf3e83104c9f7d331cfd1bf 100644
(file)
--- a/
msg.c
+++ b/
msg.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: msg.c,v 1.
2 1998/12/15 23:48:06
mdw Exp $
+ * $Id: msg.c,v 1.
3 1999/03/25 23:36:10
mdw Exp $
*
* Display a message and get an answer
*
*
* Display a message and get an answer
*
@@
-29,6
+29,10
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: msg.c,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: msg.c,v $
+ * Revision 1.3 1999/03/25 23:36:10 mdw
+ * Compile to nothing in absence of GTK, for the benefit of parent packages
+ * which contain non-GTK-dependent parts.
+ *
* Revision 1.2 1998/12/15 23:48:06 mdw
* Use `dstr_putf' for formatting, rather than `sprintf'.
*
* Revision 1.2 1998/12/15 23:48:06 mdw
* Use `dstr_putf' for formatting, rather than `sprintf'.
*
@@
-37,6
+41,8
@@
*
*/
*
*/
+#ifdef HAVE_GTK
+
/*----- Header files ------------------------------------------------------*/
#include <stdarg.h>
/*----- Header files ------------------------------------------------------*/
#include <stdarg.h>
@@
-176,3
+182,7
@@
int msg(const char *buttons, const char *msg, ...)
}
/*----- That's all, folks -------------------------------------------------*/
}
/*----- That's all, folks -------------------------------------------------*/
+
+#else
+ int mgLib_msg = 0;
+#endif