|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r80176 - trunk/tools/build/v2/engine
From: jurko.gospodnetic_at_[hidden]
Date: 2012-08-24 18:52:33
Author: jurko
Date: 2012-08-24 18:52:32 EDT (Fri, 24 Aug 2012)
New Revision: 80176
URL: http://svn.boost.org/trac/boost/changeset/80176
Log:
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.
Text files modified:
trunk/tools/build/v2/engine/jam.c | 2 +-
trunk/tools/build/v2/engine/pathunix.c | 1 +
2 files changed, 2 insertions(+), 1 deletions(-)
Modified: trunk/tools/build/v2/engine/jam.c
==============================================================================
--- trunk/tools/build/v2/engine/jam.c (original)
+++ trunk/tools/build/v2/engine/jam.c 2012-08-24 18:52:32 EDT (Fri, 24 Aug 2012)
@@ -605,6 +605,7 @@
*/
#if defined(_WIN32)
+# define WIN32_LEAN_AND_MEAN
# include <windows.h>
char * executable_path( char const * argv0 )
{
@@ -622,7 +623,6 @@
}
#elif defined(sun) || defined(__sun) /* Not tested */
# include <stdlib.h>
-
char * executable_path( char const * argv0 )
{
return strdup( getexecname() );
Modified: trunk/tools/build/v2/engine/pathunix.c
==============================================================================
--- trunk/tools/build/v2/engine/pathunix.c (original)
+++ trunk/tools/build/v2/engine/pathunix.c 2012-08-24 18:52:32 EDT (Fri, 24 Aug 2012)
@@ -238,6 +238,7 @@
}
#ifdef NT
+#define WIN32_LEAN_AND_MEAN
#include <windows.h>
/* The definition of this in winnt.h is not ANSI-C compatible. */
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk