From: scottmk Date: Thu, 8 Jan 2009 15:50:56 +0000 (+0000) Subject: Add compilation guard; prepare for #inclusion in C++ X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=9e845c64bd6fd1796bf64f26305d135c4cf6e623;p=opensrf%2Fbjwebb.git Add compilation guard; prepare for #inclusion in C++ git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1584 9efc2488-bf62-4759-914b-345cdb29e865 --- 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