Oops, the bug is still here, but reimplement the cpp(1) conditional properly.

This commit is contained in:
ru 2005-12-04 09:57:09 +00:00
parent d7f72714df
commit 8da610ce47

View File

@ -1015,8 +1015,17 @@ struct path {
#define pos_in_item(path) ((path)->pos_in_item)
#ifdef __amd64__
/* To workaround a bug in gcc. He generates a call to memset() which
* is a inline function; this causes a compile time error. */
#define INITIALIZE_PATH(var) \
struct path var; \
bzero(&var, sizeof(var)); \
var.path_length = ILLEGAL_PATH_ELEMENT_OFFSET;
#else
#define INITIALIZE_PATH(var) \
struct path var = { ILLEGAL_PATH_ELEMENT_OFFSET, }
#endif
/* Get path element by path and path position. */
#define PATH_OFFSET_PELEMENT(p_s_path, n_offset) \