summaryrefslogtreecommitdiff
path: root/sal/osl/unx/readwrite_helper.h
diff options
context:
space:
mode:
Diffstat (limited to 'sal/osl/unx/readwrite_helper.h')
-rw-r--r--sal/osl/unx/readwrite_helper.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sal/osl/unx/readwrite_helper.h b/sal/osl/unx/readwrite_helper.h
index 494c8861e..c96c4e3bf 100644
--- a/sal/osl/unx/readwrite_helper.h
+++ b/sal/osl/unx/readwrite_helper.h
@@ -29,9 +29,18 @@
#include <sal/types.h>
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
sal_Bool safeWrite( int fd, void* data, sal_uInt32 dataSize );
// This function *will* read |count| bytes from |fd|, busy looping
// if needed. Don't use it when you don't know if you can request enough
// data. It will return sal_False for any partial transfer or error.
sal_Bool safeRead( int fd, void* buffer, sal_uInt32 count );
+
+#ifdef __cplusplus
+}
+#endif