From f341eb983043d7f897168eac228f8351aac41a43 Mon Sep 17 00:00:00 2001 From: scottmk Date: Thu, 8 Jan 2009 15:58:01 +0000 Subject: [PATCH] Add compilation guard; prepare for #inclusion in C++ git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1585 9efc2488-bf62-4759-914b-345cdb29e865 --- src/ports/strn_compat/strnlen.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/ports/strn_compat/strnlen.h b/src/ports/strn_compat/strnlen.h index 181780a..4d23d34 100644 --- a/src/ports/strn_compat/strnlen.h +++ b/src/ports/strn_compat/strnlen.h @@ -22,5 +22,17 @@ * $Id$ */ +#ifndef STRNLEN_H +#define STRNLEN_H + +#ifdef __cplusplus +extern "C" { +#endif + size_t strnlen(const char *, size_t); +#ifdef __cplusplus +} +#endif + +#endif -- 2.11.0