Switch to MSVC-style packing pragmas so it will compile on Windows.

gcc and clang accept this style as well.
This commit is contained in:
Ryan Volz
2023-07-20 16:12:09 -04:00
committed by Bastian Bloessl
parent 08cdcf7a4e
commit 3898a21350
2 changed files with 6 additions and 2 deletions
+3 -1
View File
@@ -22,11 +22,13 @@
namespace gr {
namespace ieee802_11 {
#pragma pack(push, 1)
struct ethernet_header {
uint8_t dest[6];
uint8_t src[6];
uint16_t type;
} __attribute__((packed));
};
#pragma pack(pop)
class ether_encap_impl : public ether_encap
{