From: cherierm Date: Thu, 4 Oct 2007 08:11:21 +0000 (+0000) Subject: use snprintf of Visual C++ X-Git-Tag: v3.3~1017 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/b45450dd6933bae15675ec620867040421d536b6?ds=inline use snprintf of Visual C++ git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4774 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/win32/compiler/visualc.h b/src/win32/compiler/visualc.h index c7268be43b..cb19849449 100644 --- a/src/win32/compiler/visualc.h +++ b/src/win32/compiler/visualc.h @@ -168,14 +168,15 @@ -#ifndef PREFER_PORTABLE_SNPRINTF -# define PREFER_PORTABLE_SNPRINTF 1 +#ifdef PREFER_PORTABLE_SNPRINTF +# undef PREFER_PORTABLE_SNPRINTF 1 #endif + /* The compiler has `snprintf' function. */ #if _MSC_VER >= 1400 -# ifdef HAVE_SNPRINTF -# undef HAVE_SNPRINTF 1 +# ifndef HAVE_SNPRINTF +# define HAVE_SNPRINTF 1 # ifndef PREFER_PORTABLE_SNPRINTF # define snprintf _snprintf # endif @@ -186,6 +187,8 @@ # endif #endif + + /* No `swapcontext' function. */ #if defined(HAVE_SWAPCONTEXT) #undef HAVE_SWAPCONTEXT