sta-core/include/sta/printf.hpp

22 lines
410 B
C++

/**
* @file
* @brief Compatibility layer for different printf implementations.
*
* Configuration:
* * STA_PRINTF_USE_MPALAND: Use printf implementation from Marco Paland
*/
#ifndef STA_CORE_PRINTF_HPP
#define STA_CORE_PRINTF_HPP
#include <sta/config.hpp>
#ifdef STA_PRINTF_USE_MPALAND
# include <printf.h>
#else
# include <cstdio>
#endif // STA_PRINTF_USE_MPALAND
#endif // STA_CORE_PRINTF_HPP