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:
@@ -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() );
|
||||
|
||||
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user