[openssh-commits] [openssh] 01/01: Wrap <stdint.h> in #ifdef HAVE_STDINT_H.

git+noreply at mindrot.org git+noreply at mindrot.org
Mon Feb 26 17:43:48 AEDT 2018


This is an automated email from the git hooks/post-receive script.

dtucker pushed a commit to branch master
in repository openssh.

commit c7ef4a399155e1621a532cc5e08e6fa773658dd4
Author: Darren Tucker <dtucker at dtucker.net>
Date:   Mon Feb 26 17:42:56 2018 +1100

    Wrap <stdint.h> 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 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

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list