diff options
author | Darren Tucker <dtucker@dtucker.net> | 2018-02-26 17:42:56 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2018-02-26 17:42:56 +1100 |
commit | c7ef4a399155e1621a532cc5e08e6fa773658dd4 (patch) | |
tree | a60a3cae4b79b287b6b6c00e06f3ecd6c4dfaef2 | |
parent | ac53ce46cf8165cbda7f57ee045f9f32e1e92b31 (diff) |
Wrap <stdint.h> in #ifdef HAVE_STDINT_H.
-rw-r--r-- | xmss_commons.c | 2 | ||||
-rw-r--r-- | xmss_commons.h | 2 | ||||
-rw-r--r-- | xmss_fast.c | 2 | ||||
-rw-r--r-- | xmss_hash.c | 2 | ||||
-rw-r--r-- | xmss_hash_address.c | 2 | ||||
-rw-r--r-- | xmss_hash_address.h | 2 | ||||
-rw-r--r-- | xmss_wots.c | 2 | ||||
-rw-r--r-- | xmss_wots.h | 2 |
8 files changed, 16 insertions, 0 deletions
diff --git a/xmss_commons.c b/xmss_commons.c index cf031f88..ff3ddb4a 100644 --- a/xmss_commons.c +++ b/xmss_commons.c @@ -10,7 +10,9 @@ Public domain. #include "xmss_commons.h" #include <stdlib.h> #include <stdio.h> +#ifdef HAVE_STDINT_H #include <stdint.h> +#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 2cb7cc55..d9a920c0 100644 --- a/xmss_commons.h +++ b/xmss_commons.h @@ -8,7 +8,9 @@ Public domain. #define XMSS_COMMONS_H #include <stdlib.h> +#ifdef HAVE_STDINT_H #include <stdint.h> +#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 6aff36a0..b918f135 100644 --- a/xmss_fast.c +++ b/xmss_fast.c @@ -10,7 +10,9 @@ Public domain. #include "xmss_fast.h" #include <stdlib.h> #include <string.h> +#ifdef HAVE_STDINT_H #include <stdint.h> +#endif #include "crypto_api.h" #include "xmss_wots.h" diff --git a/xmss_hash.c b/xmss_hash.c index 9c42c4f4..c4cac47f 100644 --- a/xmss_hash.c +++ b/xmss_hash.c @@ -12,7 +12,9 @@ Public domain. #include "xmss_hash.h" #include <stddef.h> +#ifdef HAVE_STDINT_H #include <stdint.h> +#endif #include <stdio.h> #include <string.h> #include <openssl/sha.h> diff --git a/xmss_hash_address.c b/xmss_hash_address.c index 385868de..0ff4fdb5 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 <stdint.h> +#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 73cbfd61..2bf43408 100644 --- a/xmss_hash_address.h +++ b/xmss_hash_address.h @@ -5,7 +5,9 @@ Joost Rijneveld Public domain. */ +#ifdef HAVE_STDINT_H #include <stdint.h> +#endif void setLayerADRS(uint32_t adrs[8], uint32_t layer); diff --git a/xmss_wots.c b/xmss_wots.c index 4120acf1..9f1900fc 100644 --- a/xmss_wots.c +++ b/xmss_wots.c @@ -8,7 +8,9 @@ Public domain. #include "includes.h" #include <stdlib.h> +#ifdef HAVE_STDINT_H #include <stdint.h> +#endif #include <limits.h> #include "xmss_commons.h" #include "xmss_hash.h" diff --git a/xmss_wots.h b/xmss_wots.h index 49543108..8bcb44e0 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 |