do not include stdint.h unprotected
In most cases stdint.h should be inherited from roken.h. In those cases where it cannot be, it must be protected by #ifdef HAVE_STDINT_H Change-Id: I46cbaeab1d65939468f84179aeeef7e4f898b0bb
This commit is contained in:
@@ -36,7 +36,7 @@
|
|||||||
#ifndef __DER_H__
|
#ifndef __DER_H__
|
||||||
#define __DER_H__
|
#define __DER_H__
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <roken.h>
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
ASN1_C_UNIV = 0,
|
ASN1_C_UNIV = 0,
|
||||||
|
@@ -264,7 +264,9 @@ init_generate (const char *filename, const char *base)
|
|||||||
"/* Do not edit */\n\n"
|
"/* Do not edit */\n\n"
|
||||||
"#include <stdio.h>\n"
|
"#include <stdio.h>\n"
|
||||||
"#include <stdlib.h>\n"
|
"#include <stdlib.h>\n"
|
||||||
|
"#ifdef HAVE_STDINT_H\n"
|
||||||
"#include <stdint.h>\n"
|
"#include <stdint.h>\n"
|
||||||
|
"#endif\n"
|
||||||
"#include <time.h>\n"
|
"#include <time.h>\n"
|
||||||
"#include <string.h>\n"
|
"#include <string.h>\n"
|
||||||
"#include <errno.h>\n"
|
"#include <errno.h>\n"
|
||||||
@@ -364,7 +366,9 @@ generate_header_of_codefile(const char *name)
|
|||||||
"#define ASN1_LIB\n\n"
|
"#define ASN1_LIB\n\n"
|
||||||
"#include <stdio.h>\n"
|
"#include <stdio.h>\n"
|
||||||
"#include <stdlib.h>\n"
|
"#include <stdlib.h>\n"
|
||||||
"#include <stdint.h>\n"
|
"#ifdef HAVE_STDINT_H\n"
|
||||||
|
"#include <stdint.h>\n"
|
||||||
|
"#endif\n"
|
||||||
"#include <time.h>\n"
|
"#include <time.h>\n"
|
||||||
"#include <string.h>\n"
|
"#include <string.h>\n"
|
||||||
"#include <errno.h>\n"
|
"#include <errno.h>\n"
|
||||||
|
@@ -34,7 +34,7 @@
|
|||||||
#ifndef __HEIM_ANY_H__
|
#ifndef __HEIM_ANY_H__
|
||||||
#define __HEIM_ANY_H__ 1
|
#define __HEIM_ANY_H__ 1
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <roken.h>
|
||||||
|
|
||||||
int encode_heim_any(unsigned char *, size_t, const heim_any *, size_t *);
|
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 *);
|
int decode_heim_any(const unsigned char *, size_t, heim_any *, size_t *);
|
||||||
|
@@ -36,8 +36,8 @@
|
|||||||
#ifndef _SYMBOL_H
|
#ifndef _SYMBOL_H
|
||||||
#define _SYMBOL_H
|
#define _SYMBOL_H
|
||||||
|
|
||||||
|
#include <roken.h>
|
||||||
#include "asn1_queue.h"
|
#include "asn1_queue.h"
|
||||||
#include <stdint.h>
|
|
||||||
|
|
||||||
enum typetype {
|
enum typetype {
|
||||||
TBitString,
|
TBitString,
|
||||||
|
@@ -123,6 +123,8 @@ typedef int rk_socket_t;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
|
#include <intsafe.h>
|
||||||
|
|
||||||
/* Declarations for Microsoft Visual C runtime on Windows */
|
/* Declarations for Microsoft Visual C runtime on Windows */
|
||||||
|
|
||||||
#include<process.h>
|
#include<process.h>
|
||||||
|
@@ -44,7 +44,6 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdint.h>
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Convert a string to a long long integer.
|
* Convert a string to a long long integer.
|
||||||
|
@@ -44,7 +44,6 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdint.h>
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Convert a string to an unsigned long long integer.
|
* Convert a string to an unsigned long long integer.
|
||||||
|
Reference in New Issue
Block a user