mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
Deprecates Task and Semaphore, and changes other deprecations to use wpiutil version (#330)
This commit is contained in:
committed by
Peter Johnson
parent
861726cefa
commit
1efb2e4d3d
@@ -29,22 +29,6 @@
|
||||
#define noexcept throw()
|
||||
#endif
|
||||
|
||||
// [[deprecated(msg)]] is a C++14 feature not supported by MSVC or GCC < 4.9.
|
||||
// We provide an equivalent warning implementation for those compilers here.
|
||||
#if defined(_MSC_VER)
|
||||
#define DEPRECATED(msg) __declspec(deprecated(msg))
|
||||
#elif defined(__GNUC__)
|
||||
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 8)
|
||||
#define DEPRECATED(msg) [[deprecated(msg)]]
|
||||
#else
|
||||
#define DEPRECATED(msg) __attribute__((deprecated(msg)))
|
||||
#endif
|
||||
#elif __cplusplus > 201103L
|
||||
#define DEPRECATED(msg) [[deprecated(msg)]]
|
||||
#else
|
||||
#define DEPRECATED(msg) /*nothing*/
|
||||
#endif
|
||||
|
||||
// Provide std::decay_t when using GCC < 4.9
|
||||
#if defined(__GNUC__)
|
||||
#if __GNUC__ == 4 && __GNUC_MINOR__ < 9
|
||||
|
||||
Reference in New Issue
Block a user