Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Eclipse Projects
Eclipse openpass
opSimulation
Commits
774f5dea
Commit
774f5dea
authored
Mar 09, 2022
by
Uwe Woessner
Browse files
introduce NOMINMAX to prevent issues with min() and max() in MSVC
parent
dea20d66
Changes
2
Hide whitespace changes
Inline
Side-by-side
cmake/global.cmake
View file @
774f5dea
...
...
@@ -115,6 +115,7 @@ endif()
if
(
WIN32
)
set
(
CMAKE_INSTALL_PREFIX
"C:/OpenPASS"
CACHE PATH
"Destination directory"
)
add_compile_definitions
(
WIN32
)
add_compile_definitions
(
NOMINMAX
)
#we use c++ min and max from <limits> this prevents windows.h from defining min and max
add_compile_definitions
(
BOOST_ALL_NO_LIB
)
add_compile_definitions
(
BOOST_ALL_DYN_LINK
)
add_compile_definitions
(
_USE_MATH_DEFINES
)
...
...
sim/src/components/Algorithm_FmuWrapper/src/OsmpFmuHandler.cpp
View file @
774f5dea
...
...
@@ -1036,7 +1036,7 @@ osi3::SensorViewConfiguration OsmpFmuHandler::GenerateDefaultSensorViewConfigura
viewConfiguration
.
mutable_mounting_position
()
->
mutable_position
()
->
set_z
(
0.0
);
viewConfiguration
.
set_field_of_view_horizontal
(
M_2_PI
);
viewConfiguration
.
set_range
(
(
std
::
numeric_limits
<
double
>::
max
)
());
viewConfiguration
.
set_range
(
std
::
numeric_limits
<
double
>::
max
());
return
viewConfiguration
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment