aboutsummaryrefslogtreecommitdiff
path: root/include/stick10_commands_0.8.h
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2017-05-11 18:02:55 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2017-05-12 21:00:14 +0200
commitbe0d677aa2e7eb87a309dc3927c0917380892641 (patch)
tree26226648e82dc620ad60f6b1a80ef715f866053d /include/stick10_commands_0.8.h
parentcc71df8100b33904d2c12a92fef237bebacbe1cd (diff)
downloadlibnitrokey-be0d677aa2e7eb87a309dc3927c0917380892641.tar.gz
libnitrokey-be0d677aa2e7eb87a309dc3927c0917380892641.tar.bz2
Pack structures for NK Pro v0.8 commands
Apparently the GCC "packed" command is skipped while compiling for Win, VS style ones works Fixes nitrokey-app#242 Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'include/stick10_commands_0.8.h')
-rw-r--r--include/stick10_commands_0.8.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/stick10_commands_0.8.h b/include/stick10_commands_0.8.h
index ead5add..4337bb7 100644
--- a/include/stick10_commands_0.8.h
+++ b/include/stick10_commands_0.8.h
@@ -14,6 +14,8 @@
#include "device_proto.h"
#include "stick10_commands.h"
+#pragma pack (push,1)
+
namespace nitrokey {
namespace proto {
@@ -309,4 +311,6 @@ namespace nitrokey {
}
}
}
+#pragma pack (pop)
+
#endif //LIBNITROKEY_STICK10_COMMANDS_0_8_H