summaryrefslogtreecommitdiffhomepage
path: root/tracker-freepie-udp/ftnoir_tracker_freepie-udp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tracker-freepie-udp/ftnoir_tracker_freepie-udp.cpp')
-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,