2020-03-26 13:59:20 +01:00
|
|
|
//
|
|
|
|
// printf_lite.hpp
|
|
|
|
//
|
|
|
|
// Created by jief the 04 Apr 2019.
|
|
|
|
// Imported in CLover the 24 Feb 2020
|
|
|
|
//
|
|
|
|
#ifndef __PRINTF_LITE_CONF_H__
|
|
|
|
#define __PRINTF_LITE_CONF_H__
|
|
|
|
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <stddef.h> // for size_t
|
2020-04-24 11:30:09 +02:00
|
|
|
#include <stdint.h>
|
2020-08-26 20:49:49 +02:00
|
|
|
#include <inttypes.h>
|
2020-03-26 13:59:20 +01:00
|
|
|
|
|
|
|
#ifndef __cplusplus
|
|
|
|
#ifdef _MSC_VER
|
2020-04-25 11:59:07 +02:00
|
|
|
typedef uint16_t wchar_t;
|
2020-03-26 13:59:20 +01:00
|
|
|
#endif
|
2020-04-24 11:30:09 +02:00
|
|
|
typedef uint32_t char32_t;
|
|
|
|
typedef uint16_t char16_t;
|
2020-03-26 13:59:20 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef _MSC_VER
|
|
|
|
# define __attribute__(x)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef DEBUG
|
|
|
|
#define DEFINE_SECTIONS 0
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2020-08-26 20:49:49 +02:00
|
|
|
#define PRINTF_LITE_TIMESTAMP_SUPPORT 1
|
|
|
|
#define PRINTF_EMIT_CR_SUPPORT 1
|
2020-03-26 13:59:20 +01:00
|
|
|
|
|
|
|
|
|
|
|
#endif // __PRINTF_LITE_CONF_H__
|