mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
Some more build fixes from OpenSUSE
These update some outdated library path searches as well as a couple of gcc-specific improvements. Original patch: https://build.opensuse.org/package/view_file/shells/ksh/ksh93-compat.dif
This commit is contained in:
parent
52067c3d37
commit
be33942415
5 changed files with 15 additions and 5 deletions
|
|
@ -93,6 +93,12 @@ typedef struct
|
|||
#define pointerof(x) ((void*)((char*)0+(x)))
|
||||
#define roundof(x,y) (((x)+(y)-1)&~((y)-1))
|
||||
|
||||
#ifdef __GNUC__
|
||||
#if (__GNUC__ >= 4) && !defined(offsetof)
|
||||
#define offsetof(type,member) __builtin_offsetof(type,member)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef offsetof
|
||||
#define offsetof(type,member) ((unsigned long)&(((type*)0)->member))
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue