Ignore:
Timestamp:
2013-09-23T09:23:19+02:00 (22 months ago)
Author:
Xuefer
Message:

fix xtest

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xcache/xc_allocator_bestfit.c

    r1385 r1391  
    5454} xc_allocator_bestfit_t;
    5555
    56 #ifndef XtOffsetOf
    57 #   include <linux/stddef.h>
    58 #   define XtOffsetOf(s_type, field) offsetof(s_type, field)
    59 #endif
     56#include <stddef.h>
    6057
    6158#define SizeOf(type, field) sizeof( ((type *) 0)->field )
    62 #define BLOCK_HEADER_SIZE() (ALIGN( XtOffsetOf(xc_allocator_bestfit_block_t, size) + SizeOf(xc_allocator_bestfit_block_t, size) ))
     59#define BLOCK_HEADER_SIZE() (ALIGN( offsetof(xc_allocator_bestfit_block_t, size) + SizeOf(xc_allocator_bestfit_block_t, size) ))
    6360
    6461#define BLOCK_MAGIC ((unsigned int) 0x87655678)
Note: See TracChangeset for help on using the changeset viewer.