Skip to content

Commit 3fa0f58

Browse files
author
Andras Fekete
committed
Better definition fix
1 parent 68a05ec commit 3fa0f58

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

include/wolfengine/we_internal.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,14 @@ WOLFENGINE_LOCAL void *we_memdup(const void *data, size_t siz);
138138
#define WE_PRINTF_FUNC(s, v)
139139
#endif
140140

141+
#ifndef AES_BLOCK_SIZE
142+
#ifdef WC_NO_COMPAT_AES_BLOCK_SIZE
143+
#define AES_BLOCK_SIZE WC_AES_BLOCK_SIZE
144+
#else
145+
#error AES_BLOCK_SIZE not defined when it should be
146+
#endif
147+
#endif
148+
141149
/*
142150
* Global random
143151
*/

0 commit comments

Comments
 (0)