Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
use snprintf of Visual C++
authorcherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 4 Oct 2007 08:11:21 +0000 (08:11 +0000)
committercherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 4 Oct 2007 08:11:21 +0000 (08:11 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4774 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/win32/compiler/visualc.h

index c7268be..cb19849 100644 (file)
 
 
 
-#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
 #  endif
 #endif
 
+
+
 /* No `swapcontext' function. */
 #if defined(HAVE_SWAPCONTEXT)
        #undef HAVE_SWAPCONTEXT