[Lemon-commits] Alpar Juttner: Set the compatibily related MSVC ...
Lemon HG
hg at lemon.cs.elte.hu
Wed Feb 11 08:04:39 CET 2009
details: http://lemon.cs.elte.hu/hg/lemon/rev/daddd623ac9a
changeset: 512:daddd623ac9a
user: Alpar Juttner <alpar [at] cs.elte.hu>
date: Tue Feb 10 17:21:26 2009 +0000
description:
Set the compatibily related MSVC defines only if they has't been
defined yet
diffstat:
2 files changed, 8 insertions(+)
lemon/graph_to_eps.h | 4 ++++
lemon/time_measure.h | 4 ++++
diffs (32 lines):
diff --git a/lemon/graph_to_eps.h b/lemon/graph_to_eps.h
--- a/lemon/graph_to_eps.h
+++ b/lemon/graph_to_eps.h
@@ -29,8 +29,12 @@
#include<sys/time.h>
#include<ctime>
#else
+#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
+#endif
+#ifndef NOMINMAX
#define NOMINMAX
+#endif
#include<windows.h>
#endif
diff --git a/lemon/time_measure.h b/lemon/time_measure.h
--- a/lemon/time_measure.h
+++ b/lemon/time_measure.h
@@ -24,8 +24,12 @@
///\brief Tools for measuring cpu usage
#ifdef WIN32
+#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
+#endif
+#ifndef NOMINMAX
#define NOMINMAX
+#endif
#include <windows.h>
#include <cmath>
#else
More information about the Lemon-commits
mailing list