From dabb720a6d2ce937878dc6dd7a17c0e4cfc830df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jurko=20Gospodneti=C4=87?= Date: Fri, 24 Aug 2012 22:52:32 +0000 Subject: [PATCH] Boost Jam cleanup - added #define WIN32_LEAN_AND_MEAN before including the windows.h header to make it more light-weight in a couple of places. Minor stylistic changes. [SVN r80176] --- src/engine/jam.c | 2 +- src/engine/pathunix.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/engine/jam.c b/src/engine/jam.c index a57e49c21..086bf67a3 100644 --- a/src/engine/jam.c +++ b/src/engine/jam.c @@ -605,6 +605,7 @@ int main( int argc, char * * argv, char * * arg_environ ) */ #if defined(_WIN32) +# define WIN32_LEAN_AND_MEAN # include char * executable_path( char const * argv0 ) { @@ -622,7 +623,6 @@ char *executable_path( char const * argv0 ) } #elif defined(sun) || defined(__sun) /* Not tested */ # include - char * executable_path( char const * argv0 ) { return strdup( getexecname() ); diff --git a/src/engine/pathunix.c b/src/engine/pathunix.c index 4dd6cb90b..f2f67f64d 100644 --- a/src/engine/pathunix.c +++ b/src/engine/pathunix.c @@ -238,6 +238,7 @@ void path_parent( PATHNAME * f ) } #ifdef NT +#define WIN32_LEAN_AND_MEAN #include /* The definition of this in winnt.h is not ANSI-C compatible. */