From be0d677aa2e7eb87a309dc3927c0917380892641 Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Thu, 11 May 2017 18:02:55 +0200 Subject: 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 --- include/stick10_commands_0.8.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') 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 -- cgit v1.2.1