View Single Post
  #3  
Old 12-28-2007, 02:12 AM
a_troll_01's Avatar
a_troll_01
Fire Beetle
 
Join Date: Nov 2007
Posts: 12
Default

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.
Reply With Quote