Skip to content

Commit

Permalink
Fix VS compiler version for deprecated macro
Browse files Browse the repository at this point in the history
[[deprecated]] is available as Visual Studio 2015 where _MSC_VER is set
to 1900.
  • Loading branch information
flowvision committed Feb 14, 2020
1 parent 6fb4d19 commit f971727
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/include/pcl/pcl_macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
#define PCL_DEPRECATED
#define PCL_DEPRECATED_MESSAGE(message)
#define PCL_DEPRECATED_USING(identifier, type, message) using identifier = type
#elif (__cplusplus >= 201402L || (defined(_MSC_VER) && (_MSC_VER >= 1910) && (_MSVC_LANG >= 201402L)))
#elif (__cplusplus >= 201402L || (defined(_MSC_VER) && (_MSC_VER >= 1900) && (_MSVC_LANG >= 201402L)))
#define PCL_DEPRECATED [[deprecated]]
#define PCL_DEPRECATED_MESSAGE(message) [[deprecated(message)]]
#define PCL_DEPRECATED_USING(identifier, type, message) using identifier [[deprecated(message)]] = type
Expand Down

0 comments on commit f971727

Please sign in to comment.