summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRies van Twisk <github@rvt.dds.nl>2019-12-30 23:26:47 +0100
committerRies van Twisk <github@rvt.dds.nl>2019-12-30 23:31:36 +0100
commit678ba1e120b033ee877f70c24913ff049a7f731f (patch)
tree5e1eb3d98f446fad1dd7aeb4d3b50420cb40c43f
parent859d5585090d966a222da6bc4f14f0d749d13277 (diff)
Ensure structure is the same
-rw-r--r--tracker-freepie-udp/ftnoir_tracker_freepie-udp.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/tracker-freepie-udp/ftnoir_tracker_freepie-udp.cpp b/tracker-freepie-udp/ftnoir_tracker_freepie-udp.cpp
index 8c4d7c47..28d29351 100644
--- a/tracker-freepie-udp/ftnoir_tracker_freepie-udp.cpp
+++ b/tracker-freepie-udp/ftnoir_tracker_freepie-udp.cpp
@@ -17,22 +17,22 @@ tracker_freepie::~tracker_freepie()
}
void tracker_freepie::run() {
-#ifdef __clang__
- struct __attribute__((packed)) {
+#ifndef __clang__
+#pragma pack(push)
+struct
+#else
+struct __attribute__((packed))
+#endif
+{
uint8_t pad1;
uint8_t flags;
float fl[12];
- } data {};
-#else
- #pragma pack(push, 1)
- struct {
- uint8_t pad1;
- uint8_t flags;
- float fl[12];
- } data {};
- #pragma pack(pop)
+} data;
+#ifndef __clang__
+#pragma pack(pop)
#endif
+
enum F
{
flag_Raw = 1 << 0,