Skip to content

Fix redefine of WIN32_LEAN_AND_MEAN within _machine.h #1904

@tcormackMW

Description

@tcormackMW

Summary

Issue with redefinition of WIN32_LEAN_AND_MEAN within include/oneapi/tbb/detail/_machine.h

Environment

Occurs on Windows

Observed Behavior

Compilation failure on windows of a redefinition of the WIN32_LEAN_AND_MEAN macro

Expected Behavior

I expect this not to occur if I have defined the macro elsewhere in my source code.

I have verified that changing:

#define WIN32_LEAN_AND_MEAN

to

#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif

solves the problem

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions