summaryrefslogtreecommitdiff
path: root/snd/sndfailwin32.c
diff options
context:
space:
mode:
Diffstat (limited to 'snd/sndfailwin32.c')
-rw-r--r--snd/sndfailwin32.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/snd/sndfailwin32.c b/snd/sndfailwin32.c
new file mode 100644
index 0000000..2021644
--- /dev/null
+++ b/snd/sndfailwin32.c
@@ -0,0 +1,20 @@
+/* sndfailwin32.c -- version of sndfail that puts up a message box */
+
+/* this should not be compiled into an snd library! handling snd_fail
+ * is application specific
+ */
+
+#include <windows.h>
+
+
+void snd_fail(char *msg)
+{
+ MessageBox(0, msg, 0, 0);
+ exit(1);
+}
+
+
+void snd_warn(char *msg)
+{
+ MessageBox(0, msg, 0, MB_OK);
+}