Skip to content

Commit bcd68c8

Browse files
committed
Add pack pragma for struct padding back
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
1 parent e8731f6 commit bcd68c8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

cryptoki-sys/vendor/pkcs11.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
#define CRYPTOKI_VERSION_MINOR 1
88
#define CRYPTOKI_VERSION_AMENDMENT 0
99

10+
#if defined(_WIN32) || defined(CRYPTOKI_FORCE_WIN32)
11+
#pragma pack(push, cryptoki, 1)
12+
#endif
13+
1014
/* Basic types */
1115
typedef unsigned char CK_BBOOL;
1216
typedef unsigned char CK_BYTE;
@@ -2407,5 +2411,8 @@ struct CK_FUNCTION_LIST {
24072411
CK_C_WaitForSlotEvent C_WaitForSlotEvent;
24082412
};
24092413

2414+
#if defined(_WIN32) || defined(CRYPTOKI_FORCE_WIN32)
2415+
#pragma pack(pop, cryptoki)
2416+
#endif
24102417

24112418
#endif

0 commit comments

Comments
 (0)