# HG changeset patch # User Alpar Juttner # Date 2009-02-10 18:21:26 # Node ID daddd623ac9a2f41ef9bc6d2b083abb2d06e7a4e # Parent 70aa52d30f130dfb79b1169b1c90abf738258b1b Set the compatibily related MSVC defines only if they has't been defined yet 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 #include #else +#ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN +#endif +#ifndef NOMINMAX #define NOMINMAX +#endif #include #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 #include #else