Skip to content

Commit 2f3252e

Browse files
authored
Fix windows failure (ros2#492)
Signed-off-by: Alejandro Hernandez Cordero <[email protected]>
1 parent 937efe2 commit 2f3252e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

include/rcutils/process.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ extern "C"
2323
#endif
2424

2525
#if defined _WIN32 || defined __CYGWIN__
26+
#ifndef WIN32_LEAN_AND_MEAN
27+
#define WIN32_LEAN_AND_MEAN
28+
#endif
29+
30+
#ifndef NOMINMAX
31+
#define NOMINMAX
32+
#endif
2633
// When building with MSVC 19.28.29333.0 on Windows 10 (as of 2020-11-11),
2734
// there appears to be a problem with winbase.h (which is included by
2835
// Windows.h). In particular, warnings of the form:

0 commit comments

Comments
 (0)