Browse Source

Fix build when both nanosvg.h and nanosvgrast.h is included

with IMPLEMENTATION macros defined.
pull/215/head
tamasmeszaros 8 months ago
parent
commit
47f28a2a78
  1. 4
      src/nanosvg.h
  2. 4
      src/nanosvgrast.h

4
src/nanosvg.h

@ -181,8 +181,6 @@ void nsvgDelete(NSVGimage* image);
#endif
#endif
#endif // NANOSVG_H
#ifdef NANOSVG_IMPLEMENTATION
#include <string.h>
@ -3008,3 +3006,5 @@ void nsvgDelete(NSVGimage* image)
}
#endif
#endif // NANOSVG_H

4
src/nanosvgrast.h

@ -74,8 +74,6 @@ void nsvgDeleteRasterizer(NSVGrasterizer*);
#endif
#endif
#endif // NANOSVGRAST_H
#ifdef NANOSVGRAST_IMPLEMENTATION
#include <math.h>
@ -1456,3 +1454,5 @@ void nsvgRasterize(NSVGrasterizer* r,
}
#endif
#endif // NANOSVGRAST_H
Loading…
Cancel
Save