Ignore:
Timestamp:
Jul 8, 2014, 12:15:12 AM (8 years ago)
Author:
jordan
Message:

(trunk, libT) #4160 'foreign character support' -- merge mike.dld's 4160-03a-file.platch, which introduces tr_sys_file_*() portability wrappers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/utils.h

    r14320 r14321  
    7171
    7272
     73#ifndef __has_feature
     74 #define __has_feature(x) 0
     75#endif
     76#ifndef __has_extension
     77 #define __has_extension __has_feature
     78#endif
     79
     80/**
     81 * @def TR_STATIC_ASSERT
     82 * @brief This helper allows to perform static checks at compile time
     83 */
     84#if defined (static_assert)
     85 #define TR_STATIC_ASSERT static_assert
     86#elif __has_feature (c_static_assert) || __has_extension (c_static_assert)
     87 #define TR_STATIC_ASSERT _Static_assert
     88#else
     89 #define TR_STATIC_ASSERT(x, msg) { const char static_check[((x) ? 1 : -1)] UNUSED; }
     90#endif
     91
     92
    7393/***
    7494****
Note: See TracChangeset for help on using the changeset viewer.