Added a PRINT_ENABLED define to allow small embedded devices without print capability to use some functions in this module.
This commit is contained in:
@@ -34,6 +34,9 @@
|
|||||||
#ifndef BACTEXT_H
|
#ifndef BACTEXT_H
|
||||||
#define BACTEXT_H
|
#define BACTEXT_H
|
||||||
|
|
||||||
|
/* tiny implementations have no need to print */
|
||||||
|
#if PRINT_ENABLED
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include "indtext.h"
|
#include "indtext.h"
|
||||||
@@ -66,4 +69,7 @@ extern "C" {
|
|||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user