From 2f17afacda4789ed0cd487105b7a147eedd2e2ef Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Tue, 26 Jun 2012 17:03:08 -0400 Subject: [PATCH] Revert "do not include stdint.h unprotected" This reverts commit cb6f7ea40ecd8b1d26ba94f2ee0631f049a9a7cc. stdint.h can be included everywhere now that the Windows platform generates and installs a stdint.h when Visual Studio does not provide one. Change-Id: Ia3cab28d7f5806203cd45227765debda54ac7472 --- lib/asn1/der.h | 2 +- lib/asn1/gen.c | 6 +----- lib/asn1/heim_asn1.h | 2 +- lib/asn1/symbol.h | 2 +- lib/roken/strtoll.c | 1 + lib/roken/strtoull.c | 1 + 6 files changed, 6 insertions(+), 8 deletions(-) diff --git a/lib/asn1/der.h b/lib/asn1/der.h index 84be00c17..f73234864 100644 --- a/lib/asn1/der.h +++ b/lib/asn1/der.h @@ -36,7 +36,7 @@ #ifndef __DER_H__ #define __DER_H__ -#include +#include typedef enum { ASN1_C_UNIV = 0, diff --git a/lib/asn1/gen.c b/lib/asn1/gen.c index f96d28940..5e64b8d0e 100644 --- a/lib/asn1/gen.c +++ b/lib/asn1/gen.c @@ -270,9 +270,7 @@ init_generate (const char *filename, const char *base) "#endif\n" "#include \n" "#include \n" - "#ifdef HAVE_STDINT_H\n" "#include \n" - "#endif\n" "#include \n" "#include \n" "#include \n" @@ -375,9 +373,7 @@ generate_header_of_codefile(const char *name) "#define ASN1_LIB\n\n" "#include \n" "#include \n" - "#ifdef HAVE_STDINT_H\n" - "#include \n" - "#endif\n" + "#include \n" "#include \n" "#include \n" "#include \n" diff --git a/lib/asn1/heim_asn1.h b/lib/asn1/heim_asn1.h index 50bdfefea..23041251b 100644 --- a/lib/asn1/heim_asn1.h +++ b/lib/asn1/heim_asn1.h @@ -34,7 +34,7 @@ #ifndef __HEIM_ANY_H__ #define __HEIM_ANY_H__ 1 -#include +#include int encode_heim_any(unsigned char *, size_t, const heim_any *, size_t *); int decode_heim_any(const unsigned char *, size_t, heim_any *, size_t *); diff --git a/lib/asn1/symbol.h b/lib/asn1/symbol.h index a40547f28..a00331617 100644 --- a/lib/asn1/symbol.h +++ b/lib/asn1/symbol.h @@ -36,8 +36,8 @@ #ifndef _SYMBOL_H #define _SYMBOL_H -#include #include "asn1_queue.h" +#include enum typetype { TBitString, diff --git a/lib/roken/strtoll.c b/lib/roken/strtoll.c index c8c141d77..89e1a77d3 100644 --- a/lib/roken/strtoll.c +++ b/lib/roken/strtoll.c @@ -44,6 +44,7 @@ #include #include #include +#include /* * Convert a string to a long long integer. diff --git a/lib/roken/strtoull.c b/lib/roken/strtoull.c index ee9201f97..b954a0706 100644 --- a/lib/roken/strtoull.c +++ b/lib/roken/strtoull.c @@ -44,6 +44,7 @@ #include #include #include +#include /* * Convert a string to an unsigned long long integer.