diff --git a/include/sta/printf.hpp b/include/sta/printf.hpp new file mode 100644 index 0000000..7074460 --- /dev/null +++ b/include/sta/printf.hpp @@ -0,0 +1,22 @@ +/** + * @brief Compatibility layer for different `printf` implementations. + */ +#ifndef STA_PRINTF_HPP +#define STA_PRINTF_HPP + +#include + +#if !defined(STA_PRINTF_USE_STDLIB) && !defined(STA_PRINTF_USE_MPALAND) +# error "No printf implementation chosen!" +#endif // !STA_PRINTF_USE_STDLIB && !STA_PRINTF_USE_MPALAND + + +#ifdef STA_PRINTF_USE_STDLIB +# include +#endif // STA_PRINTF_USE_STDLIB +#ifdef STA_PRINTF_USE_MPALAND +# include +#endif // STA_PRINTF_USE_MPALAND + + +#endif // STA_PRINTF_HPP