mirror of https://github.com/fltk/fltk
Fix driver definitions of vsnprintf() and vsscanf()
These two functions are fully defined in the platform specific driver methods, there's no need to define them in the base class. This quick fix returns 0 from the base class method. The main reason was to avoid a compiler error of MSVC 2010 and earlier, i.e. before MSVC 2012. Todo: int Fl_WinAPI_System_Driver::clocale_sscanf() needs to be fixed because '_vsscanf_l()' (with lower case 'L' for 'locale') does not exist in MSVC 2010 and earlier. It is not clear yet in which version it was added - current MS docs show it in MSVC 2015 and later.
This commit is contained in:
parent
34b89f8466
commit
f1b00c6637
|
@ -406,11 +406,11 @@ int Fl_System_Driver::clocale_printf(FILE *output, const char *format, va_list a
|
|||
}
|
||||
|
||||
int Fl_System_Driver::clocale_snprintf(char *output, size_t output_size, const char *format, va_list args) {
|
||||
return vsnprintf(output, output_size, format, args);
|
||||
return 0; // overridden in platform drivers
|
||||
}
|
||||
|
||||
int Fl_System_Driver::clocale_sscanf(const char *input, const char *format, va_list args) {
|
||||
return vsscanf(input, format, args);
|
||||
return 0; // overridden in platform drivers
|
||||
}
|
||||
|
||||
int Fl_System_Driver::filename_expand(char *to,int tolen, const char *from) {
|
||||
|
|
Loading…
Reference in New Issue