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:
Jeffrey Altman
2012-03-13 23:54:27 -04:00
parent 25e533421a
commit cb6f7ea40e
7 changed files with 10 additions and 6 deletions

View File

@@ -264,7 +264,9 @@ init_generate (const char *filename, const char *base)
"/* Do not edit */\n\n"
"#include <stdio.h>\n"
"#include <stdlib.h>\n"
"#ifdef HAVE_STDINT_H\n"
"#include <stdint.h>\n"
"#endif\n"
"#include <time.h>\n"
"#include <string.h>\n"
"#include <errno.h>\n"
@@ -364,7 +366,9 @@ generate_header_of_codefile(const char *name)
"#define ASN1_LIB\n\n"
"#include <stdio.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 <string.h>\n"
"#include <errno.h>\n"