aboutsummaryrefslogtreecommitdiffstats
path: root/src/quit.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/quit.h')
-rw-r--r--src/quit.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/quit.h b/src/quit.h
index 957d463..630251d 100644
--- a/src/quit.h
+++ b/src/quit.h
@@ -25,14 +25,20 @@
*
* @param signal The signal the program received
*/
-void timeout_quit(int signal) __attribute__((noreturn));
+#ifdef __GNUC__
+__attribute__((noreturn))
+#endif
+void timeout_quit(int signal);
/**
* Quit function for user aborts
*
* @param signal The signal the program received
*/
-void user_quit(int signal) __attribute__((noreturn));
+#ifdef __GNUC__
+__attribute__((noreturn))
+#endif
+void user_quit(int signal);
#endif