From f25e039e9d79ae40725f9b1c9c16570bf611855a Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Fri, 5 Mar 2021 11:29:10 +0300
Subject: [PATCH] fixed watcom (os/2) builds.
---
nanosvg.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/nanosvg.h b/nanosvg.h
index 180a2ef..ebd124b 100644
--- a/nanosvg.h
+++ b/nanosvg.h
@@ -1515,7 +1515,9 @@ static NSVGcoordinate nsvg__parseCoordinateRaw(const char* str)
static NSVGcoordinate nsvg__coord(float v, int units)
{
- NSVGcoordinate coord = {v, units};
+ NSVGcoordinate coord ;
+ coord.value = v;
+ coord.units = units;
return coord;
}