summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--tracker-freepie-udp/ftnoir_tracker_freepie-udp.cpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/tracker-freepie-udp/ftnoir_tracker_freepie-udp.cpp b/tracker-freepie-udp/ftnoir_tracker_freepie-udp.cpp
index 6622a3b7..28d29351 100644
--- a/tracker-freepie-udp/ftnoir_tracker_freepie-udp.cpp
+++ b/tracker-freepie-udp/ftnoir_tracker_freepie-udp.cpp
@@ -17,13 +17,21 @@ tracker_freepie::~tracker_freepie()
}
void tracker_freepie::run() {
-#pragma pack(push, 1)
- struct {
+#ifndef __clang__
+#pragma pack(push)
+struct
+#else
+struct __attribute__((packed))
+#endif
+{
uint8_t pad1;
uint8_t flags;
float fl[12];
- } data {};
+} data;
+#ifndef __clang__
#pragma pack(pop)
+#endif
+
enum F
{