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

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


Author: scottmk
Date: 2009-01-08 10:50:56 -0500 (Thu, 08 Jan 2009)
New Revision: 1584

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


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



More information about the opensrf-commits mailing list