A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup of the portability between win and lin at header level
[simgrid.git]
/
src
/
win32
/
compiler
/
visualc.h
diff --git
a/src/win32/compiler/visualc.h
b/src/win32/compiler/visualc.h
index
adb8905
..
3833296
100644
(file)
--- a/
src/win32/compiler/visualc.h
+++ b/
src/win32/compiler/visualc.h
@@
-165,8
+165,14
@@
#endif
/* The compiler has `snprintf' function. */
#endif
/* The compiler has `snprintf' function. */
-#ifndef HAVE_SNPRINTF
+#if _MSC_VER >= 7 /* FIXME: check version number */
+# ifndef HAVE_SNPRINTF
#define HAVE_SNPRINTF 1
#define HAVE_SNPRINTF 1
+# endif
+#else
+# ifdef HAVE_SNPRINTF
+ #undef HAVE_SNPRINTF
+# endif
#endif
/* No `swapcontext' function. */
#endif
/* No `swapcontext' function. */