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.
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 inminc_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 definesnprintf()
only if it is not already defined.