Edit

kc3-lang/libbsd/include/bsd/cdefs.h

Branch :

  • Browse

    Commit

  • Author : Guillem Jover
    Date : 2006-02-15 20:41:06
    Hash : 1e8b819b
    Message : Disable __unused It conflicts with a struct member in a Linux header.

  • include/bsd/cdefs.h
  • #ifndef LIBBSD_CDEFS_H
    #define LIBBSD_CDEFS_H
    
    #include <sys/cdefs.h>
    
    #ifndef setproctitle
    # define setproctitle(fmt, args...)
    #endif
    
    #ifndef __dead2
    # define __dead2
    #endif
    
    /* Linux headers define a struct with a member names __unused.
     * Disable for now. */
    #if 0
    #ifndef __unused
    # ifdef __GNUC__
    #  define __unused __attribute__((unused))
    # else
    #  define __unused
    # endif
    #endif
    #endif
    
    #ifndef __printflike
    # ifdef __GNUC__
    #  define __printflike(x, y) __attribute((format(printf, (x), (y))))
    # else
    #  define __printflike(x, y)
    # endif
    #endif
    
    #ifndef __FBSDID
    # define __FBSDID(x)
    #endif
    
    #endif