summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2022-03-21 17:16:14 +0100
committerAlbrecht Schlosser <albrechts.fltk@online.de>2022-03-21 17:16:14 +0100
commitf1b00c6637ad5752fa70eb1a8c1ac8ba274210f7 (patch)
tree819ae94e6655e6ebd9cd4c8c3ead64b908d5957c /src
parent34b89f84665641d03b7b82c0e9a9ce59698f4434 (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/Fl_System_Driver.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_System_Driver.cxx b/src/Fl_System_Driver.cxx
index f207ed8b8..143585b72 100644
--- a/src/Fl_System_Driver.cxx
+++ b/src/Fl_System_Driver.cxx
@@ -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) {