From: scottmk <scottmk@9efc2488-bf62-4759-914b-345cdb29e865>
Date: Thu, 8 Jan 2009 15:58:01 +0000 (+0000)
Subject: Add compilation guard; prepare for #inclusion in C++
X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=f341eb983043d7f897168eac228f8351aac41a43;p=opensrf%2Fbjwebb.git

Add compilation guard; prepare for #inclusion in C++


git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1585 9efc2488-bf62-4759-914b-345cdb29e865
---

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