From 80ab9f5eb55d8d33baf0e034ab04f5b20701cd07 Mon Sep 17 00:00:00 2001
From: Paul Bakker
Date: Sun, 24 May 2009 14:42:46 +0000
Subject: [PATCH] - Fixed uint32_t definition on Windows systems
---
include/polarssl/camellia.h | 9 +++++++--
include/polarssl/xtea.h | 7 ++++++-
2 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/include/polarssl/camellia.h b/include/polarssl/camellia.h
index 9bf5e91f5..3f2e6a754 100644
--- a/include/polarssl/camellia.h
+++ b/include/polarssl/camellia.h
@@ -19,8 +19,13 @@
*/
#ifndef POLARSSL_CAMELLIA_H
#define POLARSSL_CAMELLIA_H
-
-#include
+
+#ifdef _MSC_VER
+#include
+typedef UINT32 uint32_t;
+#else
+#include
+#endif
#define CAMELLIA_ENCRYPT 1
#define CAMELLIA_DECRYPT 0
diff --git a/include/polarssl/xtea.h b/include/polarssl/xtea.h
index 45f754766..fe16ba3e9 100644
--- a/include/polarssl/xtea.h
+++ b/include/polarssl/xtea.h
@@ -20,7 +20,12 @@
#ifndef POLARSSL_XTEA_H
#define POLARSSL_XTEA_H
-#include
+#ifdef _MSC_VER
+#include
+typedef UINT32 uint32_t;
+#else
+#include
+#endif
#define XTEA_ENCRYPT 1
#define XTEA_DECRYPT 0