summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
dbbe240)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@5219
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
#define LINUX_COMPATIBLE
#endif
#define LINUX_COMPATIBLE
#endif
+#include "portable.h" /* to get a working stdarg.h */
+
#include <sys/types.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include <sys/types.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
-#include "portable.h" /* to get a working stdarg.h */
-
#include <assert.h>
#include <errno.h>
#include "xbt/str.h"
#include <assert.h>
#include <errno.h>
#include "xbt/str.h"
/* declare our portable snprintf routine under name portable_snprintf */
/* declare our portable vsnprintf routine under name portable_vsnprintf */
# if defined(_MSC_VER) && (_MSC_VER >= 1400)
/* declare our portable snprintf routine under name portable_snprintf */
/* declare our portable vsnprintf routine under name portable_vsnprintf */
# if defined(_MSC_VER) && (_MSC_VER >= 1400)
-# define portable_snprintf _snprintf
-# if !defined(NEED_SNPRINTF_ONLY)
+# define portable_snprintf _snprintf
+# define portable_vsnprintf vsnprintf
+# else
+# define portable_snprintf snprintf
# define portable_vsnprintf vsnprintf
# endif
# define portable_vsnprintf vsnprintf
# endif
#else
/* declare our portable routines under names snprintf and vsnprintf */
#define portable_snprintf snprintf
#else
/* declare our portable routines under names snprintf and vsnprintf */
#define portable_snprintf snprintf