Github user astitcher commented on the issue:

    https://github.com/apache/qpid-proton/pull/120
  
    This is the CMake generated version of the deprecation macros:
    ```
    #  ifndef PN_DEPRECATED
    #    if defined(PN_COMPILER_CXX_ATTRIBUTE_DEPRECATED) && 
PN_COMPILER_CXX_ATTRIBUTE_DEPRECATED
    #      define PN_DEPRECATED [[deprecated]]
    #      define PN_DEPRECATED_MSG(MSG) [[deprecated(MSG)]]
    #    elif PN_COMPILER_IS_GNU || PN_COMPILER_IS_Clang
    #      define PN_DEPRECATED __attribute__((__deprecated__))
    #      define PN_DEPRECATED_MSG(MSG) __attribute__((__deprecated__(MSG)))
    #    elif PN_COMPILER_IS_MSVC
    #      define PN_DEPRECATED __declspec(deprecated)
    #      define PN_DEPRECATED_MSG(MSG) __declspec(deprecated(MSG))
    #    else
    #      define PN_DEPRECATED
    #      define PN_DEPRECATED_MSG(MSG)
    #    endif
    #  endif
    ```
    
    I note that it doesn't include the declaration itself - I take this to mean 
that you can choose the correct place to put the macro do it works for all the 
supported compilers - This certainly seems neater to me.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to