I tracked down the issue and it appears to be one of symantics. The EMU projects references the functions _snprintf & _vsnprintf and MSC uses _snprintf_c & _vsnprintf_c.
So I made the following change:
#ifdef WIN32
#ifdef _MSC_VER
#define snprintf _snprintf_c
#define vsnprintf _vsnprintf_c
#else
#define snprintf _snprintf
#define vsnprintf _vsnprintf
#endif
I do have a question about the project structure. Why do we redefine snprintf & vsnprintf in the source so many times? Seems to me it would have be more appropriate to define it once in types.h and then include types.h where needed.
|