ros / roscpp_core

ros distribution sandbox
89 stars 116 forks source link

update the use of macros in platform.h #99

Closed kejxu closed 5 years ago

kejxu commented 5 years ago

getenv from stdlib.h is always used in the code (https://github.com/ros/roscpp_core/blob/kinetic-devel/cpp_common/include/ros/platform.h#L68), remove the _MSC_VER check

windows.h doesn't have to be included in platform.h since it's not used by all the files referencing platform.h. WIN32_LEAN_AND_MEAN and NOMINMAX are changed to be added in catkin. _WINSOCKAPI_ is not really necessary since winsock2.h (mentioned in the comment) is not being included.

dirk-thomas commented 5 years ago

Thanks for the patch.