Better declaration for our vsscanf.

This commit is contained in:
Moritz Bunkus 2004-10-11 20:35:18 +00:00
parent 854fa616aa
commit b5026faa89

View File

@ -77,12 +77,6 @@ typedef _fsize_t ssize_t;
# define LLD "%I64d" # define LLD "%I64d"
# define LLU "%I64u" # define LLU "%I64u"
# if defined(COMP_MSC)
# include <stdio.h>
int MTX_DLL_API vsscanf(const char *, const char *, va_list argPtr);
# endif // COMP_MSC
#else // COMP_MINGW || COMP_MSC #else // COMP_MINGW || COMP_MSC
# define MTX_DLL_API # define MTX_DLL_API
@ -119,4 +113,10 @@ typedef UINT64_TYPE uint64_t;
# define ARCH_LITTLEENDIAN # define ARCH_LITTLEENDIAN
#endif #endif
// MSVC doesn't provide vsscanf. So let's use our own frontend.
#if !defined(HAVE_VSSCANF) || (HAVE_VSSCANF != 1)
# include <stdio.h>
int vsscanf(const char *, const char *, va_list);
#endif // !HAVE_VSSCANF...
#endif #endif