Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/memononen/nanosvg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortamasmeszaros <meszaros.q@gmail.com>2022-05-26 10:34:53 +0300
committertamasmeszaros <meszaros.q@gmail.com>2022-05-26 10:34:53 +0300
commit47f28a2a78de610ac5be5321a88efd3a777fe83e (patch)
tree5731e01118a7a421ae8717c1d0bec585f5e7fa07 /src
parent4c8f0139b62c6e7faa3b67ce1fbe6e63590ed148 (diff)
Fix build when both nanosvg.h and nanosvgrast.h is included
with IMPLEMENTATION macros defined.
Diffstat (limited to 'src')
-rw-r--r--src/nanosvg.h4
-rw-r--r--src/nanosvgrast.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/nanosvg.h b/src/nanosvg.h
index 0c58616..aaf0428 100644
--- a/src/nanosvg.h
+++ b/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 \ No newline at end of file
diff --git a/src/nanosvgrast.h b/src/nanosvgrast.h
index 4f6f0a6..fa3427b 100644
--- a/src/nanosvgrast.h
+++ b/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 \ No newline at end of file