2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-13 12:22:17 +00:00

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]
This commit is contained in:
Jurko Gospodnetić
2012-08-24 22:52:32 +00:00
parent bbfefc9762
commit dabb720a6d
2 changed files with 2 additions and 1 deletions

View File

@@ -605,6 +605,7 @@ int main( int argc, char * * argv, char * * arg_environ )
*/
#if defined(_WIN32)
# define WIN32_LEAN_AND_MEAN
# include <windows.h>
char * executable_path( char const * argv0 )
{
@@ -622,7 +623,6 @@ char *executable_path( char const * argv0 )
}
#elif defined(sun) || defined(__sun) /* Not tested */
# include <stdlib.h>
char * executable_path( char const * argv0 )
{
return strdup( getexecname() );

View File

@@ -238,6 +238,7 @@ void path_parent( PATHNAME * f )
}
#ifdef NT
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
/* The definition of this in winnt.h is not ANSI-C compatible. */