From 9e845c64bd6fd1796bf64f26305d135c4cf6e623 Mon Sep 17 00:00:00 2001 From: scottmk Date: Thu, 8 Jan 2009 15:50:56 +0000 Subject: [PATCH] Add compilation guard; prepare for #inclusion in C++ git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1584 9efc2488-bf62-4759-914b-345cdb29e865 --- src/ports/strn_compat/strndup.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/ports/strn_compat/strndup.h b/src/ports/strn_compat/strndup.h index be91f5f..e678e8c 100644 --- a/src/ports/strn_compat/strndup.h +++ b/src/ports/strn_compat/strndup.h @@ -23,5 +23,17 @@ * OTHER DEALINGS IN THE SOFTWARE. */ +#ifndef STRNDUP_H +#define STRNDUP_H + +#ifdef __cplusplus +extern "C" { +#endif + char *strndup(const char *s, size_t n); +#ifdef __cplusplus +} +#endif + +#endif -- 2.43.2