[Opensrf-commits] r1586 - trunk/include/opensrf
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Jan 8 11:18:04 EST 2009
Author: scottmk
Date: 2009-01-08 11:18:01 -0500 (Thu, 08 Jan 2009)
New Revision: 1586
Modified:
trunk/include/opensrf/md5.h
Log:
Rename macro for compilation guard; prepare for #inclusion in C++
Modified: trunk/include/opensrf/md5.h
===================================================================
--- trunk/include/opensrf/md5.h 2009-01-08 15:58:01 UTC (rev 1585)
+++ trunk/include/opensrf/md5.h 2009-01-08 16:18:01 UTC (rev 1586)
@@ -12,9 +12,13 @@
/* Put this in md5.h if you don't like having everything in one big
* file. */
-#ifndef _DMADORE_MD5_H
-#define _DMADORE_MD5_H
+#ifndef DMADORE_MD5_H
+#define DMADORE_MD5_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct md5_ctx {
/* The four chaining variables */
unsigned long buf[4];
@@ -31,5 +35,9 @@
void MD5_feed (struct md5_ctx *context, unsigned char inb);
void MD5_stop (struct md5_ctx *context, unsigned char digest[16]);
-#endif /* not defined _DMADORE_MD5_H */
+#ifdef __cplusplus
+}
+#endif
+#endif /* not defined DMADORE_MD5_H */
+
More information about the opensrf-commits
mailing list