Set the compatibily related MSVC defines only if they has't been defined yet
authorAlpar Juttner <alpar@cs.elte.hu>
Tue, 10 Feb 2009 17:21:26 +0000 (2009-02-10)
changeset 484daddd623ac9a
parent 483 70aa52d30f13
child 485 c5919679af17
child 491 879c55700cd4
Set the compatibily related MSVC defines only if they has't been defined yet
lemon/graph_to_eps.h
lemon/time_measure.h
     1.1 --- a/lemon/graph_to_eps.h	Tue Feb 10 15:43:39 2009 +0100
     1.2 +++ b/lemon/graph_to_eps.h	Tue Feb 10 17:21:26 2009 +0000
     1.3 @@ -29,8 +29,12 @@
     1.4  #include<sys/time.h>
     1.5  #include<ctime>
     1.6  #else
     1.7 +#ifndef WIN32_LEAN_AND_MEAN
     1.8  #define WIN32_LEAN_AND_MEAN
     1.9 +#endif
    1.10 +#ifndef NOMINMAX
    1.11  #define NOMINMAX
    1.12 +#endif
    1.13  #include<windows.h>
    1.14  #endif
    1.15  
     2.1 --- a/lemon/time_measure.h	Tue Feb 10 15:43:39 2009 +0100
     2.2 +++ b/lemon/time_measure.h	Tue Feb 10 17:21:26 2009 +0000
     2.3 @@ -24,8 +24,12 @@
     2.4  ///\brief Tools for measuring cpu usage
     2.5  
     2.6  #ifdef WIN32
     2.7 +#ifndef WIN32_LEAN_AND_MEAN
     2.8  #define WIN32_LEAN_AND_MEAN
     2.9 +#endif
    2.10 +#ifndef NOMINMAX
    2.11  #define NOMINMAX
    2.12 +#endif
    2.13  #include <windows.h>
    2.14  #include <cmath>
    2.15  #else