Skip to content

Commit

Permalink
remove math.h, unneeded now that we're directly evaluating float bits (
Browse files Browse the repository at this point in the history
…#205)

* remove math.h, unneeded now that we're directly evaluating float bits

* include limts
  • Loading branch information
charlesnicholson authored Mar 26, 2022
1 parent e8a3a7b commit 6900d4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 0 additions & 4 deletions nanoprintf.h
Original file line number Diff line number Diff line change
Expand Up @@ -298,10 +298,6 @@ static int npf_ftoa_rev(char *buf, float f, char case_adj, int *out_frac_chars);
static int npf_bin_len(npf_uint_t i);
#endif

#if NANOPRINTF_USE_FLOAT_FORMAT_SPECIFIERS == 1
#include <math.h>
#endif

#if NANOPRINTF_USE_LARGE_FORMAT_SPECIFIERS == 1
#ifdef _MSC_VER
#include <BaseTsd.h>
Expand Down
2 changes: 2 additions & 0 deletions tests/unit_binary.cc
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include "unit_nanoprintf.h"

#include <cmath>
#include <limits>
#include <string>

#if NANOPRINTF_HAVE_GCC_WARNING_PRAGMAS
Expand Down

0 comments on commit 6900d4e

Please sign in to comment.