about summary refs log tree commit diff stats
path: root/src/LYSignal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/LYSignal.h')
-rw-r--r--src/LYSignal.h19
1 files changed, 12 insertions, 7 deletions
diff --git a/src/LYSignal.h b/src/LYSignal.h
index 95619457..ccb81021 100644
--- a/src/LYSignal.h
+++ b/src/LYSignal.h
@@ -1,26 +1,31 @@
-
 #ifndef LYSIGNAL_H
 #define LYSIGNAL_H
 
 #include <signal.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
 #ifdef VMS
-extern void VMSsignal(int sig, void (*func) ());
+    extern void VMSsignal(int sig, void (*func) ());
 
 #ifdef signal
 #undef signal
-#endif /* signal */
+#endif				/* signal */
 #define signal(a,b) VMSsignal(a,b)	/* use LYCurses.c routines for interrupts */
-#endif /* VMS */
+#endif				/* VMS */
 
 #ifdef HAVE_SIGACTION
-typedef void LYSigHandlerFunc_t(int);
+    typedef void LYSigHandlerFunc_t(int);
 
 /* implementation in LYUtils.c */
-extern void LYExtSignal(int sig, LYSigHandlerFunc_t * handler);
+    extern void LYExtSignal(int sig, LYSigHandlerFunc_t * handler);
 
 #else
 #define LYExtSignal(sig,h) signal(sig, h)
 #endif
 
-#endif /* LYSIGNAL_H */
+#ifdef __cplusplus
+}
+#endif
+#endif				/* LYSIGNAL_H */