Skip to content

Commit

Permalink
Merge pull request #215 from tamasmeszaros/tm_fix_includes
Browse files Browse the repository at this point in the history
Fix build when both nanosvg.h and nanosvgrast.h is included
  • Loading branch information
memononen authored May 26, 2022
2 parents 4c8f013 + 47f28a2 commit 3bcdf2f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/nanosvg.h
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,6 @@ void nsvgDelete(NSVGimage* image);
#endif
#endif

#endif // NANOSVG_H

#ifdef NANOSVG_IMPLEMENTATION

#include <string.h>
Expand Down Expand Up @@ -3008,3 +3006,5 @@ void nsvgDelete(NSVGimage* image)
}

#endif

#endif // NANOSVG_H
4 changes: 2 additions & 2 deletions src/nanosvgrast.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ void nsvgDeleteRasterizer(NSVGrasterizer*);
#endif
#endif

#endif // NANOSVGRAST_H

#ifdef NANOSVGRAST_IMPLEMENTATION

#include <math.h>
Expand Down Expand Up @@ -1456,3 +1454,5 @@ void nsvgRasterize(NSVGrasterizer* r,
}

#endif

#endif // NANOSVGRAST_H

0 comments on commit 3bcdf2f

Please sign in to comment.