[Opensrf-commits] r1585 - trunk/src/ports/strn_compat

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Jan 8 10:58:05 EST 2009


Author: scottmk
Date: 2009-01-08 10:58:01 -0500 (Thu, 08 Jan 2009)
New Revision: 1585

Modified:
   trunk/src/ports/strn_compat/strnlen.h
Log:
Add compilation guard; prepare for #inclusion in C++


Modified: trunk/src/ports/strn_compat/strnlen.h
===================================================================
--- trunk/src/ports/strn_compat/strnlen.h	2009-01-08 15:50:56 UTC (rev 1584)
+++ trunk/src/ports/strn_compat/strnlen.h	2009-01-08 15:58:01 UTC (rev 1585)
@@ -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



More information about the opensrf-commits mailing list