Commit 4caa4e01 authored by rswindell's avatar rswindell

More intelligent method of checking sizeof(node_t) - using the preprocessor.

parent 3ff38281
......@@ -108,8 +108,6 @@ 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 */
......@@ -121,6 +119,10 @@ 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