Commit 112212d5 authored by rswindell's avatar rswindell

Added packed structure support for bc++/Linux builds.

parent 31032c99
......@@ -49,7 +49,7 @@
#include "gen_defs.h"
#include "smbdefs.h" /* _PACK */
#ifdef _WIN32
#if defined(_WIN32) || defined(__BORLANDC__)
#pragma pack(push)
#pragma pack(1)
#endif
......@@ -76,7 +76,7 @@ typedef struct _PACK {
WORD length;
} dns_rr_t;
#ifdef _WIN32
#if defined(_WIN32) || defined(__BORLANDC__)
#pragma pack(pop) /* original packing */
#endif
......
......@@ -103,7 +103,7 @@ enum { /* Node Action */
,NODE_LAST_ACTION /* Must be last */
};
#ifdef _WIN32 /* necessary for compatibility with SBBS v2 */
#if defined(_WIN32) || defined(__BORLANDC__) /* necessary for compatibility with SBBS v2 */
#pragma pack(push)
#pragma pack(1)
#endif
......@@ -121,7 +121,7 @@ typedef struct _PACK { /* Node information kept in node.dab */
ulong extaux; /* Extended aux dword for node */
} node_t;
#ifdef _WIN32
#if defined(_WIN32) || defined(__BORLANDC__)
#pragma pack(pop) /* original packing */
#endif
......
......@@ -382,7 +382,7 @@ enum {
#define _PACK
#endif
#ifdef _WIN32
#if defined(_WIN32) || defined(__BORLANDC__)
#pragma pack(push) /* Disk image structures must be packed */
#pragma pack(1)
#endif
......@@ -479,7 +479,7 @@ typedef struct _PACK { // Network (type and address)
} net_t;
#ifdef _WIN32
#if defined(_WIN32) || defined(__BORLANDC__)
#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