Changeset 14722


Ignore:
Timestamp:
Mar 29, 2016, 3:47:29 PM (6 years ago)
Author:
jordan
Message:

give a useful definition of TR_DEPRECATED on msvc as well

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/transmission.h

    r14721 r14722  
    2121#endif
    2222
    23 #if defined(__GNUC__)
     23#if defined(__clang__)
     24 #define TR_DEPRECATED __attribute__((gnu::deprecated))
     25#elif defined(__GNUC__)
    2426 #define TR_DEPRECATED __attribute__((deprecated))
    25 #elif defined(__clang__)
    26  #define TR_DEPRECATED __attribute__((gnu::deprecated))
     27#elif defined(_MSC_VER)
     28 #define TR_DEPRECATED __declspec(deprecated)
    2729#else
    2830 #define TR_DEPRECATED
     
    20412043
    20422044/** @deprecated */
    2043 void tr_torrentSetAddedDate (tr_torrent * torrent,
    2044                              time_t       addedDate) TR_DEPRECATED;
     2045TR_DEPRECATED void tr_torrentSetAddedDate (tr_torrent * torrent,
     2046                                           time_t       addedDate);
    20452047
    20462048/** @deprecated */
    2047 void tr_torrentSetActivityDate (tr_torrent * torrent,
    2048                                 time_t       activityDate) TR_DEPRECATED;
     2049TR_DEPRECATED void tr_torrentSetActivityDate (tr_torrent * torrent,
     2050                                              time_t       activityDate);
    20492051
    20502052/** @deprecated */
    2051 void tr_torrentSetDoneDate (tr_torrent * torrent, time_t doneDate) TR_DEPRECATED;
     2053TR_DEPRECATED void tr_torrentSetDoneDate (tr_torrent * torrent,
     2054                                          time_t       doneDate);
    20522055
    20532056/** @} */
Note: See TracChangeset for help on using the changeset viewer.