From 4548f56df597a23f4f0510d698c08589e5265ce7 Mon Sep 17 00:00:00 2001 From: cherierm Date: Fri, 21 Sep 2007 15:59:15 +0000 Subject: [PATCH] update the configuration file of Visual C++ git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4673 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/win32/compiler/visualc.h | 30 +++++++++++------------------- 1 file changed, 11 insertions(+), 19 deletions(-) diff --git a/src/win32/compiler/visualc.h b/src/win32/compiler/visualc.h index bc84a0b2a2..adb89054dc 100644 --- a/src/win32/compiler/visualc.h +++ b/src/win32/compiler/visualc.h @@ -165,8 +165,8 @@ #endif /* The compiler has `snprintf' function. */ -#if defined(HAVE_SNPRINTF) - #undef HAVE_SNPRINTF 1 +#ifndef HAVE_SNPRINTF + #define HAVE_SNPRINTF 1 #endif /* No `swapcontext' function. */ @@ -185,32 +185,24 @@ #endif /* The compiler has the `vsnprintf' function. */ -/*#if !defined(HAVE_VSNPRINTF) +#ifndef HAVE_VSNPRINTF #define HAVE_VSNPRINTF 1 -#endif*/ +#endif -/* enable the asprintf replacement */ -#if !defined(NEED_ASPRINTF) - #define NEED_ASPRINTF 1 +/* disable the asprintf replacement */ +#ifndef NEED_ASPRINTF + #define NEED_ASPRINTF #endif -/*#ifdef NEED_ASPRINTF -#undef NEED_ASPRINTF -#endif*/ - -/* enable the vasprintf replacement */ -#if !defined(NEED_VASPRINTF) - #define NEED_VASPRINTF 1 +/* disable the vasprintf replacement */ +#ifndef NEED_VASPRINTF + #define NEED_VASPRINTF #endif /* "disable the snprintf replacement ( this function is broken on system v only" */ -/* FIXME TO ANALYZE */ -#if defined(PREFER_PORTABLE_SNPRINTF) - #undef PREFER_PORTABLE_SNPRINTF -#endif #if !defined(PREFER_PORTABLE_SNPRINTF) #define PREFER_PORTABLE_SNPRINTF @@ -403,6 +395,6 @@ typedef unsigned int uint32_t; #endif - +typedef int ssize_t; #endif /* #ifndef __XBT_VISUALC_COMPILER_CONFIG_H__ */ -- 2.20.1