BIC-MNI / libminc

libminc is the core library and API of the MINC toolkit
Other
19 stars 29 forks source link

Missing snprintf definition in time_stamp.c for Visual Studio #90

Closed fbudin69500 closed 7 years ago

fbudin69500 commented 7 years ago

time_stamp.c uses the function snprintf(). In Visual Studio, this function is defined as _snprintf(). This can lead to linking errors. snprintf() is defined in minc_private.h, but this is not enough to avoid the linking errors. minc_private.h cannot be included in time_stamp.c easily and creates more compilation errors. To avoid these problems, we define snprintf() only if it is not already defined.

fbudin69500 commented 7 years ago

@thewtex Thanks for approving this PR. Any chance you can merge it?

thewtex commented 7 years ago

@fbudin69500 Thanks! Merged.