mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-02 14:30:10 +00:00
add transition helper to format.h
the transition from v3 to v4 introduced an API change that format.h does not provide printf functionality. to easi the transition we introduce a define `FMT_FORMAT_PROVIDE_PRINTF` that will pull in printf.h from format.h
This commit is contained in:
parent
319346025d
commit
0f98773164
@ -25,6 +25,11 @@
|
|||||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// transition helper
|
||||||
|
#ifdef FMT_FORMAT_PROVIDE_PRINTF
|
||||||
|
#include "printf.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef FMT_FORMAT_H_
|
#ifndef FMT_FORMAT_H_
|
||||||
#define FMT_FORMAT_H_
|
#define FMT_FORMAT_H_
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user