Ignore:
Timestamp:
Nov 14, 2012, 12:59:34 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to 3.6.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/lib/util/attr.h

    r414 r740  
    2828#  define UNUSED(param) param
    2929/** Feel free to add definitions for other compilers here. */
    30 #endif
    31 
    32 #ifdef HAVE_VISIBILITY_ATTR
    33 #  define _PUBLIC_ __attribute__((visibility("default")))
    34 #else
    35 #  define _PUBLIC_
    3630#endif
    3731
     
    8882#endif
    8983
     84#ifndef FORMAT_ATTRIBUTE
     85#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)
     86/** Use gcc attribute to check printf fns.  a1 is argument to format()
     87 * in the above macro.  This is needed to support Heimdal's printf
     88 * decorations. Note that some gcc 2.x versions don't handle this
     89 * properly, and as such I've used the same minimum from heimdal: GCC 3.1 **/
     90#define FORMAT_ATTRIBUTE(a) __attribute__ ((format a))
     91#else
     92#define FORMAT_ATTRIBUTE(a)
     93#endif
     94#endif
     95
    9096#endif /* __UTIL_ATTR_H__ */
Note: See TracChangeset for help on using the changeset viewer.