/* Copyright (C) 2013 DJ Delorie, see COPYING.DJ for details */
/* Copyright (C) 2012 DJ Delorie, see COPYING.DJ for details */

/*
 *  snprintf and vsnprintf declarations for djgpp.
 *  This will be removed as soon as
 *  djdev203 is definitivly replaced
 *  by djdev204.
 */
#ifndef _SNPRINTF_STDIO_H_
# define _SNPRINTF_STDIO_H_

#include <sys/version.h>
# if defined(__DJGPP__) && __DJGPP__ == 2 && __DJGPP_MINOR__ < 4
#  include <stdio.h>
#  include <string.h>
#  include <stdarg.h>
#  include <limits.h>
#  include <errno.h>
#  include <libc/file.h>

int snprintf(char *str, size_t n, const char *fmt, ...);
int vsnprintf(char *str, size_t n, const char *fmt, va_list ap);

# endif  /* __DJGPP__ */
#endif
