From c7ef4a399155e1621a532cc5e08e6fa773658dd4 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Mon, 26 Feb 2018 17:42:56 +1100 Subject: [PATCH] Wrap in #ifdef HAVE_STDINT_H. --- xmss_commons.c | 2 ++ xmss_commons.h | 2 ++ xmss_fast.c | 2 ++ xmss_hash.c | 2 ++ xmss_hash_address.c | 2 ++ xmss_hash_address.h | 2 ++ xmss_wots.c | 2 ++ xmss_wots.h | 2 ++ 8 files changed, 16 insertions(+) diff --git a/xmss_commons.c b/xmss_commons.c index cf031f883..ff3ddb4ae 100644 --- a/xmss_commons.c +++ b/xmss_commons.c @@ -10,7 +10,9 @@ Public domain. #include "xmss_commons.h" #include #include +#ifdef HAVE_STDINT_H #include +#endif void to_byte(unsigned char *out, unsigned long long in, uint32_t bytes) { diff --git a/xmss_commons.h b/xmss_commons.h index 2cb7cc555..d9a920c02 100644 --- a/xmss_commons.h +++ b/xmss_commons.h @@ -8,7 +8,9 @@ Public domain. #define XMSS_COMMONS_H #include +#ifdef HAVE_STDINT_H #include +#endif void to_byte(unsigned char *output, unsigned long long in, uint32_t bytes); #if 0 diff --git a/xmss_fast.c b/xmss_fast.c index 6aff36a07..b918f135a 100644 --- a/xmss_fast.c +++ b/xmss_fast.c @@ -10,7 +10,9 @@ Public domain. #include "xmss_fast.h" #include #include +#ifdef HAVE_STDINT_H #include +#endif #include "crypto_api.h" #include "xmss_wots.h" diff --git a/xmss_hash.c b/xmss_hash.c index 9c42c4f40..c4cac47fd 100644 --- a/xmss_hash.c +++ b/xmss_hash.c @@ -12,7 +12,9 @@ Public domain. #include "xmss_hash.h" #include +#ifdef HAVE_STDINT_H #include +#endif #include #include #include diff --git a/xmss_hash_address.c b/xmss_hash_address.c index 385868de7..0ff4fdb5a 100644 --- a/xmss_hash_address.c +++ b/xmss_hash_address.c @@ -6,7 +6,9 @@ Public domain. */ #include "includes.h" +#ifdef HAVE_STDINT_H #include +#endif #include "xmss_hash_address.h" /* prototypes */ void setLayerADRS(uint32_t adrs[8], uint32_t layer){ diff --git a/xmss_hash_address.h b/xmss_hash_address.h index 73cbfd61c..2bf434080 100644 --- a/xmss_hash_address.h +++ b/xmss_hash_address.h @@ -5,7 +5,9 @@ Joost Rijneveld Public domain. */ +#ifdef HAVE_STDINT_H #include +#endif void setLayerADRS(uint32_t adrs[8], uint32_t layer); diff --git a/xmss_wots.c b/xmss_wots.c index 4120acf17..9f1900fcb 100644 --- a/xmss_wots.c +++ b/xmss_wots.c @@ -8,7 +8,9 @@ Public domain. #include "includes.h" #include +#ifdef HAVE_STDINT_H #include +#endif #include #include "xmss_commons.h" #include "xmss_hash.h" diff --git a/xmss_wots.h b/xmss_wots.h index 495431087..8bcb44e04 100644 --- a/xmss_wots.h +++ b/xmss_wots.h @@ -8,7 +8,9 @@ Public domain. #ifndef WOTS_H #define WOTS_H +#ifdef HAVE_STDINT_H #include "stdint.h" +#endif /** * WOTS parameter set