File tree 1 file changed +10
-4
lines changed
1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -65,10 +65,16 @@ else (WIN32)
65
65
"flag. Please use a different C++ compiler." )
66
66
endif (WIN32 )
67
67
68
- # Convenience flags to simplify Windows support in C++ source.
69
- if (MSVC )
70
- add_definitions (-DMESOS_MSVC)
71
- endif (MSVC )
68
+ # Convenience flags to simplify Windows support in C++ source, used to #ifdef
69
+ # out some platform-specific parts of Mesos. We choose to define a new flag
70
+ # rather than using an existing flag (e.g., `_WIN32`) because we want to give
71
+ # the build system fine-grained control over what code is #ifdef'd out in the
72
+ # future. Using only flags defined by our build system to control this logic is
73
+ # the clearest and most stable way of accomplishing this.
74
+ if (WIN32 )
75
+ add_definitions (-D__WINDOWS__)
76
+ endif (WIN32 )
77
+
72
78
73
79
# Configure directory structure for different platforms.
74
80
########################################################
You can’t perform that action at this time.
0 commit comments