View Single Post
Old 09-04-11, 12:17 PM   #16
magicstix
Captain
 
Join Date: Aug 2011
Location: Nuclear submarine under the North Pole
Posts: 481
Downloads: 1
Uploads: 0
Default

You can just redefine them with a precompiler statement.

#if _MSC_VER
#define snprintf _snprintf
#define strncmp _strnicmp
#endif

Etc... This will be ignored by the linux compilers and will properly replace the functions under MSVC
magicstix is offline   Reply With Quote