summaryrefslogtreecommitdiff
path: root/ACE/ace/OS_NS_signal.h
diff options
context:
space:
mode:
authorolli <olli@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2009-09-15 20:40:16 +0000
committerolli <olli@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2009-09-15 20:40:16 +0000
commit5e244c7591aa315648b1cacc02f7fb118c2933c6 (patch)
treee25f56715e3e4c0fef2b0f384919e1d9a767c60b /ACE/ace/OS_NS_signal.h
parent5b071603cae102ec09fa811762ae450c785a64ab (diff)
downloadATCD-5e244c7591aa315648b1cacc02f7fb118c2933c6.tar.gz
Tue Sep 15 20:33:47 UTC 2009 Olli Savia <ops@iki.fi>
Diffstat (limited to 'ACE/ace/OS_NS_signal.h')
-rw-r--r--ACE/ace/OS_NS_signal.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/ACE/ace/OS_NS_signal.h b/ACE/ace/OS_NS_signal.h
index 40c0e47a88c..7df03100c44 100644
--- a/ACE/ace/OS_NS_signal.h
+++ b/ACE/ace/OS_NS_signal.h
@@ -33,6 +33,36 @@
#endif
#define ACE_EXPORT_MACRO ACE_Export
+
+/*
+ * We inline and undef some functions that may be implemented
+ * as macros on some platforms. This way macro definitions will
+ * be usable later as there is no way to save the macro definition
+ * using the pre-processor.
+ *
+ */
+
+inline int ace_sigemptyset_helper (sigset_t *s)
+{
+#if defined (sigemptyset)
+ return sigemptyset (s);
+#undef sigemptyset
+#else
+ return ACE_STD_NAMESPACE::sigemptyset (s);
+#endif /* defined (sigemptyset) */
+}
+
+inline int ace_sigfillset_helper (sigset_t *s)
+{
+#if defined (sigfillset)
+ return sigfillset (s);
+#undef sigfillset
+#else
+ return ACE_STD_NAMESPACE::sigfillset (s);
+#endif /* defined (sigfillset) */
+}
+
+
# if !defined (SIG_BLOCK)
# define SIG_BLOCK 1
# endif /* SIG_BLOCK */