Commit 64fa23ad authored by Wayne Davison's avatar Wayne Davison

Tweak includes to fix non-defined NULL on some systems.

parent 0a77adee
......@@ -37,7 +37,7 @@
* which showed it, so that's been fixed. Also, formated the code
* to mutt conventions, and removed dead code left over from the
* original. Also, there is now a builtin-test, just compile with:
* gcc -DTEST_SNPRINTF -o snprintf snprintf.c -lm
* gcc -I.. -DTEST_SNPRINTF -o snprintf snprintf.c -lm
* and run snprintf for results.
*
* Thomas Roessler <roessler@guug.de> 01/27/98 for mutt 0.89i
......@@ -103,7 +103,7 @@
*
**************************************************************/
#include "../config.h"
#include "config.h"
#ifdef TEST_SNPRINTF /* need math library headers for testing */
......@@ -141,6 +141,10 @@
void dummy_snprintf(void) {}
#endif /* HAVE_SNPRINTF, etc */
#ifdef STDC_HEADERS
#include <stddef.h>
#endif
#ifdef HAVE_LONG_DOUBLE
#define LDOUBLE long double
#else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment