assert.h only for internal files

git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@874 59561ff5-6e30-0410-9f3c-9617f08c8826
This commit is contained in:
vlm 2005-04-19 09:19:17 +00:00
parent fa8b7948b9
commit ad96ab2193
2 changed files with 4 additions and 3 deletions

View File

@ -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)

View File

@ -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