mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-17 05:36:12 +08:00
* ldlang.c (offsetof): Define if not defined.
This commit is contained in:
@ -40,6 +40,10 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
|
||||
#include "fnmatch.h"
|
||||
#include "demangle.h"
|
||||
|
||||
#ifndef offsetof
|
||||
#define offsetof(TYPE,MEMBER) ((size_t)&(((TYPE*)0)->MEMBER))
|
||||
#endif
|
||||
|
||||
/* FORWARDS */
|
||||
static lang_statement_union_type *new_statement
|
||||
PARAMS ((enum statement_enum, size_t, lang_statement_list_type *));
|
||||
|
Reference in New Issue
Block a user