Commit fabac905 authored by rswindell's avatar rswindell

Reverted back to macro bethod of testing sizeof(node_t). Some compilers (e.g....

Reverted back to macro bethod of testing sizeof(node_t). Some compilers (e.g. MSVC) resolve sizeof() after preprocessing.
parent 94d110b0
......@@ -108,6 +108,8 @@ enum { /* Node Action */
#pragma pack(1)
#endif
#define SIZEOF_NODE_T 15 /* Must == sizeof(node_t) */
typedef struct { /* Node information kept in NODE.DAB */
uchar status, /* Current Status of Node */
errors, /* Number of Critical Errors */
......@@ -119,10 +121,6 @@ typedef struct { /* Node information kept in NODE.DAB */
ulong extaux; /* Extended aux dword for node */
} node_t;
#if sizeof(node_t)!=15
#error "node_t packing problem!"
#endif
#ifdef _WIN32
#pragma pack(pop) /* original packing */
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment