Rename __weak to __weak_symbol to avoid language conflict with objective-C.
PR: 200972 (exp-run) Suggested by: theraven@ MFC after: 3 days
This commit is contained in:
parent
35291c2247
commit
491f3ef01b
@ -213,9 +213,9 @@
|
||||
#define __packed
|
||||
#define __aligned(x)
|
||||
#define __section(x)
|
||||
#define __weak
|
||||
#define __weak_symbol
|
||||
#else
|
||||
#define __weak __attribute__((__weak__))
|
||||
#define __weak_symbol __attribute__((__weak__))
|
||||
#if !__GNUC_PREREQ__(2, 5) && !defined(__INTEL_COMPILER)
|
||||
#define __dead2
|
||||
#define __pure2
|
||||
|
@ -80,8 +80,8 @@
|
||||
* Initialize before referring to a given linker set.
|
||||
*/
|
||||
#define SET_DECLARE(set, ptype) \
|
||||
extern ptype __weak *__CONCAT(__start_set_,set); \
|
||||
extern ptype __weak *__CONCAT(__stop_set_,set)
|
||||
extern ptype __weak_symbol *__CONCAT(__start_set_,set); \
|
||||
extern ptype __weak_symbol *__CONCAT(__stop_set_,set)
|
||||
|
||||
#define SET_BEGIN(set) \
|
||||
(&__CONCAT(__start_set_,set))
|
||||
|
Loading…
Reference in New Issue
Block a user