Skip to content

Commit

Permalink
driver: gaze_master_plugins: Windows terribleness
Browse files Browse the repository at this point in the history
Signed-off-by: Oleg Vorobiov <oleg.vorobiov@somainline.org>
  • Loading branch information
okawo80085 committed Aug 9, 2022
1 parent 2b1d3f8 commit b366ca3
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions driver/gaze_master_plugins/src/plugin.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
#ifdef WIN
#include <cstring>
// #define _snprintf _snprintf_s
// #define snprintf _snprintf
// #undef snprintf
namespace std {
inline int snprintf (char *s, size_t maxlen, const char *format, ...)
{
va_list arg;
int done;
va_start (arg, format);
done = _snprintf_s(s, maxlen, maxlen, format, arg, 0);
va_end (arg);
return done;
}
}
#endif
#include <boost/dll.hpp>

#if !defined(WIN) && !defined(LINUX)
Expand Down

0 comments on commit b366ca3

Please sign in to comment.