Wrap <stdint.h> in #ifdef HAVE_STDINT_H.

This commit is contained in:
Darren Tucker 2018-02-26 17:42:56 +11:00
parent ac53ce46cf
commit c7ef4a3991
8 changed files with 16 additions and 0 deletions

View File

@ -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)
{

View File

@ -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

View File

@ -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"

View File

@ -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>

View File

@ -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){

View File

@ -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);

View File

@ -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"

View File

@ -8,7 +8,9 @@ Public domain.
#ifndef WOTS_H
#define WOTS_H
#ifdef HAVE_STDINT_H
#include "stdint.h"
#endif
/**
* WOTS parameter set