Ignore:
Timestamp:
Aug 16, 2003, 6:59:22 PM (22 years ago)
Author:
bird
Message:

binutils v2.14 - offical sources.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/binutils/include/objalloc.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r608 r609  
    11/* objalloc.h -- routines to allocate memory for objects
    2    Copyright 1997 Free Software Foundation, Inc.
     2   Copyright 1997, 2001 Free Software Foundation, Inc.
    33   Written by Ian Lance Taylor, Cygnus Solutions.
    44
     
    5757#include <stddef.h>
    5858#endif
    59 #define OBJALLOC_ALIGN \
    60   ((ptrdiff_t) ((char *) &((struct objalloc_align *) 0)->d - (char *) 0))
    61 #else
    62 #define OBJALLOC_ALIGN \
    63   ((long) ((char *) &((struct objalloc_align *) 0)->d - (char *) 0))
    6459#endif
     60#ifndef offsetof
     61#define offsetof(TYPE, MEMBER) ((unsigned long) &((TYPE *)0)->MEMBER)
     62#endif
     63#define OBJALLOC_ALIGN offsetof (struct objalloc_align, d)
    6564
    6665/* Create an objalloc structure.  Returns NULL if malloc fails.  */
Note: See TracChangeset for help on using the changeset viewer.