[Opensrf-commits] r1583 - trunk/include/opensrf

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


Author: scottmk
Date: 2009-01-08 10:37:04 -0500 (Thu, 08 Jan 2009)
New Revision: 1583

Modified:
   trunk/include/opensrf/sha.h
Log:
Add compilation guard; prepare for #inclusion in C++


Modified: trunk/include/opensrf/sha.h
===================================================================
--- trunk/include/opensrf/sha.h	2009-01-08 15:28:32 UTC (rev 1582)
+++ trunk/include/opensrf/sha.h	2009-01-08 15:37:04 UTC (rev 1583)
@@ -30,7 +30,13 @@
 //
 // =====================================================================================
 
+#ifndef SHA_H
+#define SHA_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 //#ifdef WIN32
      char* shahash(const char* str);
 //#else
@@ -39,3 +45,8 @@
 //}
 //#endif
 
+#ifdef __cplusplus
+}
+#endif
+
+#endif



More information about the opensrf-commits mailing list