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

include/opensrf/sha.h

index 6c3d2d4..af8a1c9 100644 (file)
 //
 // =====================================================================================
 
+#ifndef SHA_H
+#define SHA_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
 
 //#ifdef WIN32
      char* shahash(const char* str);
@@ -39,3 +45,8 @@
 //}
 //#endif
 
+#ifdef __cplusplus
+}
+#endif
+
+#endif