Add compilation guard; prepare for #inclusion in C++
authorscottmk <scottmk@9efc2488-bf62-4759-914b-345cdb29e865>
Thu, 8 Jan 2009 15:58:01 +0000 (15:58 +0000)
committerscottmk <scottmk@9efc2488-bf62-4759-914b-345cdb29e865>
Thu, 8 Jan 2009 15:58:01 +0000 (15:58 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1585 9efc2488-bf62-4759-914b-345cdb29e865

src/ports/strn_compat/strnlen.h

index 181780a..4d23d34 100644 (file)
  * $Id$
  */
 
+#ifndef STRNLEN_H
+#define STRNLEN_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 size_t strnlen(const char *, size_t);
 
+#ifdef __cplusplus
+}
+#endif
+
+#endif