Use correct prototype for DbgPrint. Thanks to Hartmut for pointing this out.

svn path=/trunk/; revision=19665
This commit is contained in:
Gé van Geldorp 2005-11-26 23:26:04 +00:00
parent 1a1c4e47a7
commit 9ac03e5aae
3 changed files with 6 additions and 4 deletions

View file

@ -44,7 +44,7 @@ typedef char TCHAR, *PTCHAR, *PTSTR;
#define _tcstol strtol
#define STRFMT "%s"
extern void DbgPrint(const char *Fmt, ...);
extern unsigned long DbgPrint(char *Fmt, ...);
#else /* ! defined(INFLIB_HOST) */

View file

@ -11,14 +11,16 @@
#define NDEBUG
#include <debug.h>
void
DbgPrint(const char *Fmt, ...)
unsigned long
DbgPrint(char *Fmt, ...)
{
va_list Args;
va_start(Args, Fmt);
vfprintf(stderr, Fmt, Args);
va_end(Args);
return 0;
}
/* EOF */

View file

@ -31,7 +31,7 @@ INFLIB_HOST_SOURCES = $(addprefix $(INFLIB_BASE_), \
INFLIB_HOST_OBJECTS = \
$(subst $(INFLIB_BASE), $(INFLIB_INT), $(INFLIB_HOST_SOURCES:.c=.o))
INFLIB_HOST_CFLAGS = -O3 -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
INFLIB_HOST_CFLAGS = -O3 -Wall -Wpointer-arith -Wconversion \
-Wstrict-prototypes -Wmissing-prototypes -DINFLIB_HOST -D_M_IX86 \
-I$(INFLIB_BASE) -Iinclude/reactos -DDBG