Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/macros.h

    rb0c2075 r83dab11  
    3838#ifndef __ASM__
    3939
    40 #include <typedefs.h>
     40#include <stdint.h>
    4141#include <trace.h>
    4242
     
    157157        })
    158158
     159
     160#ifndef member_to_inst
     161#define member_to_inst(ptr_member, type, member_identif) \
     162        ((type*) (((void*)(ptr_member)) - ((void*)&(((type*)0)->member_identif))))
     163#endif
     164
     165
    159166#endif
    160167
Note: See TracChangeset for help on using the changeset viewer.