23 lines
863 B
C
23 lines
863 B
C
|
|
#ifndef AKERR_DEFAULT_RUNTIME_H_
|
||
|
|
#define AKERR_DEFAULT_RUNTIME_H_
|
||
|
|
|
||
|
|
/*
|
||
|
|
* Convenience default for AKERR_RUNTIME_HEADER, used when libakerror is
|
||
|
|
* configured -DAKERR_USE_STDLIB=OFF without also setting
|
||
|
|
* -DAKERR_RUNTIME_HEADER. It re-exposes the six symbols the freestanding
|
||
|
|
* build needs (exit, memset, snprintf, strcmp, strlen, strncpy) from the
|
||
|
|
* host's own C library, so building and testing the OFF configuration on an
|
||
|
|
* ordinary hosted machine does not require standing up a real freestanding
|
||
|
|
* runtime first.
|
||
|
|
*
|
||
|
|
* A genuinely freestanding consumer -- the whole point of
|
||
|
|
* AKERR_USE_STDLIB=OFF -- supplies their own header providing those six
|
||
|
|
* symbols and overrides the AKERR_RUNTIME_HEADER cache variable; this file is
|
||
|
|
* not meant for that use.
|
||
|
|
*/
|
||
|
|
#include <stdlib.h>
|
||
|
|
#include <string.h>
|
||
|
|
#include <stdio.h>
|
||
|
|
|
||
|
|
#endif /* AKERR_DEFAULT_RUNTIME_H_ */
|