From 22fb62671e4fb244927de496e87aeb5ea024afa5 Mon Sep 17 00:00:00 2001 From: scottmk Date: Thu, 8 Jan 2009 16:18:01 +0000 Subject: [PATCH] Rename macro for compilation guard; prepare for #inclusion in C++ git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1586 9efc2488-bf62-4759-914b-345cdb29e865 --- include/opensrf/md5.h | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/include/opensrf/md5.h b/include/opensrf/md5.h index 53dd2b1..9ab2922 100644 --- a/include/opensrf/md5.h +++ b/include/opensrf/md5.h @@ -12,8 +12,12 @@ /* 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 */ @@ -31,5 +35,9 @@ void MD5_start (struct md5_ctx *context); 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 */ -- 2.43.2