Workaround msvc lack of a stdint.h

Suggested-by: Jef Driesen <jef@libdivecomputer.org>
Signed-off-by: Anton Lundin <glance@acc.umu.se>
This commit is contained in:
Anton Lundin 2014-12-17 21:31:08 +01:00 committed by Jef Driesen
parent 5820ac01e3
commit 954cae1a0e
2 changed files with 5 additions and 1 deletions

View File

@ -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"

View File

@ -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.