mirror of
https://github.com/reactos/reactos.git
synced 2025-07-05 03:41:21 +00:00
Use correct prototype for DbgPrint. Thanks to Hartmut for pointing this out.
svn path=/trunk/; revision=19665
This commit is contained in:
parent
1a1c4e47a7
commit
9ac03e5aae
3 changed files with 6 additions and 4 deletions
|
@ -44,7 +44,7 @@ typedef char TCHAR, *PTCHAR, *PTSTR;
|
||||||
#define _tcstol strtol
|
#define _tcstol strtol
|
||||||
#define STRFMT "%s"
|
#define STRFMT "%s"
|
||||||
|
|
||||||
extern void DbgPrint(const char *Fmt, ...);
|
extern unsigned long DbgPrint(char *Fmt, ...);
|
||||||
|
|
||||||
#else /* ! defined(INFLIB_HOST) */
|
#else /* ! defined(INFLIB_HOST) */
|
||||||
|
|
||||||
|
|
|
@ -11,14 +11,16 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
||||||
void
|
unsigned long
|
||||||
DbgPrint(const char *Fmt, ...)
|
DbgPrint(char *Fmt, ...)
|
||||||
{
|
{
|
||||||
va_list Args;
|
va_list Args;
|
||||||
|
|
||||||
va_start(Args, Fmt);
|
va_start(Args, Fmt);
|
||||||
vfprintf(stderr, Fmt, Args);
|
vfprintf(stderr, Fmt, Args);
|
||||||
va_end(Args);
|
va_end(Args);
|
||||||
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* EOF */
|
/* EOF */
|
||||||
|
|
|
@ -31,7 +31,7 @@ INFLIB_HOST_SOURCES = $(addprefix $(INFLIB_BASE_), \
|
||||||
INFLIB_HOST_OBJECTS = \
|
INFLIB_HOST_OBJECTS = \
|
||||||
$(subst $(INFLIB_BASE), $(INFLIB_INT), $(INFLIB_HOST_SOURCES:.c=.o))
|
$(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 \
|
-Wstrict-prototypes -Wmissing-prototypes -DINFLIB_HOST -D_M_IX86 \
|
||||||
-I$(INFLIB_BASE) -Iinclude/reactos -DDBG
|
-I$(INFLIB_BASE) -Iinclude/reactos -DDBG
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue