Skip to content

Commit

Permalink
add transition helper to format.h
Browse files Browse the repository at this point in the history
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
  • Loading branch information
timblechmann authored and vitaut committed Dec 28, 2017
1 parent 3193460 commit 0f98773
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions fmt/format.h
Expand Up @@ -25,6 +25,11 @@
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_
#define FMT_FORMAT_H_

Expand Down

0 comments on commit 0f98773

Please sign in to comment.