Ignore:
Timestamp:
Dec 6, 2004, 3:19:54 AM (21 years ago)
Author:
bird
Message:

wide-char and other locale stuff.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/include/sys/cdefs.h

    • Property cvs2svn:cvs-rev changed from 1.10 to 1.11
    r1704 r1705  
    3131 *
    3232 *      @(#)cdefs.h     8.8 (Berkeley) 1/9/95
    33  * $FreeBSD: src/sys/sys/cdefs.h,v 1.81 2004/04/07 04:19:49 imp Exp $
     33 * $FreeBSD: src/sys/sys/cdefs.h,v 1.84 2004/08/13 00:53:40 julian Exp $
    3434 */
    3535
     
    155155#define __pure2         __attribute__((__const__))
    156156#define __unused        __attribute__((__unused__))
     157#define __used          __attribute__((__used__))
    157158#define __packed        __attribute__((__packed__))
    158159#define __aligned(x)    __attribute__((__aligned__(x)))
     
    163164#define __pure2         __attribute__((__const__))
    164165#define __unused        __attribute__((__unused__))
     166#define __used          __attribute__((__used__))
    165167#define __packed        __attribute__((__packed__))
    166168#define __aligned(x)    __attribute__((__aligned__(x)))
    167169#define __section(x)    __attribute__((__section__(x)))
    168170#endif
     171#endif
     172
     173#if __GNUC_PREREQ__(2, 96)
     174#define __pure          __attribute__((__pure__))
     175#else
     176#define __pure
    169177#endif
    170178
     
    245253 */
    246254#define __offsetof(type, field) ((size_t)(&((type *)0)->field))
     255#define __rangeof(type, start, end) \
     256        (__offsetof(type, end) - __offsetof(type, start))
    247257
    248258/*
     
    310320 * more recent ELF binutils, we use .ident allowing the ID to be stripped.
    311321 * Usage:
    312  *      __FBSDID("$FreeBSD: src/sys/sys/cdefs.h,v 1.81 2004/04/07 04:19:49 imp Exp $");
     322 *      __FBSDID("$FreeBSD: src/sys/sys/cdefs.h,v 1.84 2004/08/13 00:53:40 julian Exp $");
    313323 */
    314324#ifndef __FBSDID
Note: See TracChangeset for help on using the changeset viewer.