Ignore:
Timestamp:
Nov 25, 2016, 8:04:54 PM (9 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to version 4.4.7

File:
1 edited

Legend:

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

    r988 r989  
    3636
    3737#ifndef _DEPRECATED_
    38 #if (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1 )
     38#ifdef HAVE___ATTRIBUTE__
    3939#define _DEPRECATED_ __attribute__ ((deprecated))
    4040#else
     
    4444
    4545#ifndef _WARN_UNUSED_RESULT_
    46 #if (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1 )
     46#ifdef HAVE___ATTRIBUTE__
    4747#define _WARN_UNUSED_RESULT_ __attribute__ ((warn_unused_result))
    4848#else
     
    5252
    5353#ifndef _NORETURN_
    54 #if (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1 )
     54#ifdef HAVE___ATTRIBUTE__
    5555#define _NORETURN_ __attribute__ ((noreturn))
    5656#else
     
    6060
    6161#ifndef _PURE_
    62 #if (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1)
     62#ifdef HAVE___ATTRIBUTE__
    6363#define _PURE_ __attribute__((pure))
    6464#else
     
    6868
    6969#ifndef NONNULL
    70 #if (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1)
     70#ifdef HAVE___ATTRIBUTE__
    7171#define NONNULL(param) param __attribute__((nonnull))
    7272#else
     
    7676
    7777#ifndef PRINTF_ATTRIBUTE
    78 #if __GNUC__ >= 3
     78#ifdef HAVE___ATTRIBUTE__
    7979/** Use gcc attribute to check printf fns.  a1 is the 1-based index of
    8080 * the parameter containing the format, and a2 the index of the first
     
    8888
    8989#ifndef FORMAT_ATTRIBUTE
    90 #if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)
     90#ifdef HAVE___ATTRIBUTE__
    9191/** Use gcc attribute to check printf fns.  a1 is argument to format()
    9292 * in the above macro.  This is needed to support Heimdal's printf
    9393 * decorations. Note that some gcc 2.x versions don't handle this
    94  * properly, and as such I've used the same minimum from heimdal: GCC 3.1 **/
     94 * properly. **/
    9595#define FORMAT_ATTRIBUTE(a) __attribute__ ((format a))
    9696#else
Note: See TracChangeset for help on using the changeset viewer.