Commit 2ffa1c60 authored by Lev Walkin's avatar Lev Walkin
Browse files

assert.h only for internal files

parent 6ac04066
......@@ -13,6 +13,10 @@ int get_asn1c_environment_version(void); /* Run-time version */
#include <asn_application.h> /* Application-visible API */
#ifndef __NO_ASSERT_H__ /* Include assert.h only for internal use. */
#include <assert.h> /* for assert() macro */
#endif
#define CALLOC(nmemb, size) calloc(nmemb, size)
#define MALLOC(size) malloc(size)
#define REALLOC(oldptr, size) realloc(oldptr, size)
......
......@@ -18,9 +18,6 @@
#include <sys/types.h> /* For size_t */
#include <stdarg.h> /* For va_start */
#include <stddef.h> /* for offsetof and ptrdiff_t */
#ifndef __NO_ASSERT_H__
#include <assert.h> /* for assert() macro */
#endif
#ifdef WIN32
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment