[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-gnulib] Problem with the md5 module
From: |
Martin Lambers |
Subject: |
[bug-gnulib] Problem with the md5 module |
Date: |
Thu, 27 Jan 2005 17:35:41 +0100 |
User-agent: |
Mutt/1.5.6i |
Hi!
I use the md5 module of gnulib.
On systems with MD5Init(), MD5Update(), MD5Final() (for example *BSD or
dietlibc), I would like to use these functions instead.
But I cannot #include <md5.h> since that includes the gnulib md5.h
header: src/Makefile.am includes the line
AM_CPPFLAGS = -I$(top_srcdir)/lib
where lib is the gnulib directory. I do not want to
delete this line because I need it for other gnulib modules, too.
Example:
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdlib.h>
#ifdef HAVE_MD5
#include <sys/types.h>
#include <md5.h> /* this fails */
#else /* gnulib */
#include "md5.h"
#endif
...
#ifdef HAVE_MD5
MD5Init(&context);
#else /* gnulib */
md5_init_ctx(&context);
#endif
...
Any ideas how I can do this?
Best regards,
Martin Lambers
- [bug-gnulib] Problem with the md5 module,
Martin Lambers <=