Suggested-by: Jef Driesen jef@libdivecomputer.org Signed-off-by: Anton Lundin glance@acc.umu.se --- src/aes.c | 1 - src/aes.h | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/aes.c b/src/aes.c index 4315a65..a2f00dd 100644 --- a/src/aes.c +++ b/src/aes.c @@ -33,7 +33,6 @@ NOTE: String length must be evenly divisible by 16byte (str_len % 16 == 0) /*****************************************************************************/ /* Includes: */ /*****************************************************************************/ -#include <stdint.h> #include <string.h> // CBC mode, for memset #include "aes.h"
diff --git a/src/aes.h b/src/aes.h index 708a09c..051d813 100644 --- a/src/aes.h +++ b/src/aes.h @@ -1,7 +1,12 @@ #ifndef _AES_H_ #define _AES_H_
+#ifdef _MSC_VER +typedef unsigned char uint8_t; +typedef unsigned int uint32_t; +#else #include <stdint.h> +#endif
// #define the macros below to 1/0 to enable/disable the mode of operation.