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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user