Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions include/sys/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,15 @@ typedef unsigned uid_t;
#ifndef __MES_WCHAR_T
#define __MES_WCHAR_T
#undef wchar_t
// The compiler names the type of a wide character literal for its
// target; MesCC names none.
#ifdef __WCHAR_TYPE__
typedef __WCHAR_TYPE__ wchar_t;
#else
typedef int wchar_t;
#endif
#endif
#endif

#endif // ! SYSTEM_LIBC

Expand Down
6 changes: 6 additions & 0 deletions lib/stdio/vfprintf.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@
#include <stdio.h>
#include <string.h>

/* A compiler's own stdarg.h defines va_arg alone, and its va_arg reads a
double as one. */
#ifndef va_arg8
#define va_arg8(ap, type) va_arg (ap, type)
#endif

int
vfprintf (FILE * f, char const *format, va_list ap)
{
Expand Down
6 changes: 6 additions & 0 deletions lib/stdio/vsnprintf.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@
#include <stdarg.h>
#include <string.h>

/* A compiler's own stdarg.h defines va_arg alone, and its va_arg reads a
double as one. */
#ifndef va_arg8
#define va_arg8(ap, type) va_arg (ap, type)
#endif

int
vsnprintf (char *str, size_t size, char const *format, va_list ap)
{
Expand Down
Loading