From: Dylan McKay <me@dylanmckay.io>
Date: Thu, 6 Jul 2017 14:22:35 +0000 (+1200)
Subject: Add missing header file to 'sim_hex.h'
X-Git-Tag: v1.6~36
X-Git-Url: https://git.htl-mechatronik.at/public/?a=commitdiff_plain;h=9a0c479aeedc9c7beb60568e3449c75d7a2f7649;p=sx%2Fsimavr.git

Add missing header file to 'sim_hex.h'

'size_t' is not defined in any of the header files included in
'sim_hex.h', even though it is used in there.

You can see a list of all headers that define 'size_t' here
http://en.cppreference.com/w/c/types/size_t
---

diff --git a/simavr/sim/sim_hex.h b/simavr/sim/sim_hex.h
index 4b3fe76..67ecc77 100644
--- a/simavr/sim/sim_hex.h
+++ b/simavr/sim/sim_hex.h
@@ -24,6 +24,7 @@
 #define __SIM_HEX_H___
 
 #include <stdint.h>
+#include <stddef.h>
 
 #ifdef __cplusplus
 extern "C" {