git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Usermode/libc - C++ wrapping in headers, time rework
[tpg/acess2.git]
/
Usermode
/
Libraries
/
libc.so_src
/
include_exp
/
signal.h
diff --git
a/Usermode/Libraries/libc.so_src/include_exp/signal.h
b/Usermode/Libraries/libc.so_src/include_exp/signal.h
index
a4c8bd3
..
38de258
100644
(file)
--- a/
Usermode/Libraries/libc.so_src/include_exp/signal.h
+++ b/
Usermode/Libraries/libc.so_src/include_exp/signal.h
@@
-8,6
+8,10
@@
#ifndef _SIGNAL_H_
#define _SIGNAL_H_
#ifndef _SIGNAL_H_
#define _SIGNAL_H_
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include "signal_list.h"
typedef void (*sighandler_t)(int);
#include "signal_list.h"
typedef void (*sighandler_t)(int);
@@
-15,9
+19,9
@@
typedef void (*sighandler_t)(int);
//! Atomic integer type
typedef volatile int sig_atomic_t;
//! Atomic integer type
typedef volatile int sig_atomic_t;
-#define SIG_IGN ((
void*
)1)
-#define SIG_DFL ((
void*
)0)
-#define SIG_ERR ((
void*
)-1)
+#define SIG_IGN ((
sighandler_t
)1)
+#define SIG_DFL ((
sighandler_t
)0)
+#define SIG_ERR ((
sighandler_t
)-1)
extern sighandler_t signal(int signum, sighandler_t handler);
extern sighandler_t signal(int signum, sighandler_t handler);
@@
-55,5
+59,9
@@
struct sigaction
extern int sigaction(int signum, const struct sigaction *act, struct sigaction *oldact);
extern int sigaction(int signum, const struct sigaction *act, struct sigaction *oldact);
+#if __cplusplus
+}
+#endif
+
#endif
#endif
UCC
git Repository :: git.ucc.asn.au