X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ae8169afc916c94be22970461a9dcccd5777ae86..26682497b29a3eeb2d08eae44a4bef73a17a08fc:/src/win32/compiler/visualc.h?ds=sidebyside diff --git a/src/win32/compiler/visualc.h b/src/win32/compiler/visualc.h index adb89054dc..3833296bd4 100644 --- a/src/win32/compiler/visualc.h +++ b/src/win32/compiler/visualc.h @@ -165,8 +165,14 @@ #endif /* The compiler has `snprintf' function. */ -#ifndef HAVE_SNPRINTF +#if _MSC_VER >= 7 /* FIXME: check version number */ +# ifndef HAVE_SNPRINTF #define HAVE_SNPRINTF 1 +# endif +#else +# ifdef HAVE_SNPRINTF + #undef HAVE_SNPRINTF +# endif #endif /* No `swapcontext' function. */