Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 May 2016 05:31:14 +0000 (UTC)
From:      "Conrad E. Meyer" <cem@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r300824 - head/lib/libmd
Message-ID:  <201605270531.u4R5VE6R006890@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cem
Date: Fri May 27 05:31:14 2016
New Revision: 300824
URL: https://svnweb.freebsd.org/changeset/base/300824

Log:
  libmd: Work around C++'s inability to understand C
  
  Reported by:	antoine@ (x265)

Modified:
  head/lib/libmd/md5.h

Modified: head/lib/libmd/md5.h
==============================================================================
--- head/lib/libmd/md5.h	Fri May 27 04:34:42 2016	(r300823)
+++ head/lib/libmd/md5.h	Fri May 27 05:31:14 2016	(r300824)
@@ -37,5 +37,13 @@
 
 #endif
 
+#ifdef __cplusplus
+#define static
+#endif
+
 #include <sys/md5.h>
+
+#ifdef __cplusplus
+#undef static
+#endif
 #endif /* _MD5_H_ */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605270531.u4R5VE6R006890>