Thorvg couldn't be compiled on macos as non-portable microsoft calls used.
Changed definitions checking to Visual Studio only.
#define TVG_LOG_TAG "ThorVG"
-#if defined(__clang__) && !defined(__EMSCRIPTEN__)
+#if defined(_MSC_VER) && defined(__clang__)
#define strncpy strncpy_s
#define strdup _strdup
#endif
static FILE* _fopen(const char* filename, const char* mode)
{
-#if defined(__clang__) && !defined(__EMSCRIPTEN__)
+#if defined(_MSC_VER) && defined(__clang__)
FILE *fp;
auto err = fopen_s(&fp, filename, mode);
if (err != 0) return nullptr;