NetBSD/lib/libc/md/md5hl.c
christos 6db303aa6b The weak alias macros can only work before namespace.h gets included because
when the strings get expanded we gain an _ from namespace.h. So define a
macro to point to the appropriate include file for the hash function, and
include the hash function later, from the .c file we always include. This
allows us to eliminate the hack of including namespace.h twice as well as
nbtool_config.h.
2005-09-26 03:01:41 +00:00

17 lines
400 B
C

/* $NetBSD: md5hl.c,v 1.7 2005/09/26 03:01:41 christos Exp $ */
/*
* Written by Jason R. Thorpe <thorpej@NetBSD.org>, April 29, 1997.
* Public domain.
*/
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: md5hl.c,v 1.7 2005/09/26 03:01:41 christos Exp $");
#endif /* LIBC_SCCS and not lint */
#define MDALGORITHM MD5
#define MDINCLUDE <md5.h>
#include "mdXhl.c"