extern "C" {
#endif
-#ifndef vkvg_public
-# if defined (_MSC_VER) && ! defined (VKVG_STATIC_BUILD)
-# define vkvg_public __declspec(dllimport)
-# else
-# define vkvg_public
-# endif
-#endif
-
/*! @defgroup nsvg Nano SVG
* @brief Render SVG drawings
*
#include <stdbool.h>
#ifndef vkvg_public
- #if (defined(_WIN32) || defined(_WIN64)) && !defined (VKVG_STATIC_BUILD)
- #define vkvg_public __declspec(dllimport)
+ #ifndef VKVG_STATIC_BUILD
+ #if (defined(_WIN32) || defined(_WIN64))
+ #define vkvg_public __declspec(dllimport)
+ #else
+ #define vkvg_public __attribute__((visibility("default")))
+ #endif
#else
- #define vkvg_public __attribute__((visibility("default")))
+ #define vkvg_public
#endif
#endif
#define VKVG_VECTORS_H
#include "vkvg_internal.h"
-#include <immintrin.h>
-typedef union {
- float v2si __attribute__ ((vector_size (8)));
- struct {
+typedef struct {
float x;
float y;
- };
}vec2;
typedef struct {
uint64_t stride = vkh_image_get_stride(stagImg);
uint32_t dest_stride = surf->width * 4;
- void* img = vkh_image_map (stagImg);
- void* row = bitmap;
+ char* img = vkh_image_map (stagImg);
+ char* row = bitmap;
for (uint32_t y = 0; y < surf->height; y++) {
memcpy(row, img, dest_stride);
row += dest_stride;
-Subproject commit dde09d88d7c6554b39d46bccaf8b392e2a42d937
+Subproject commit ffa9619b5368639c1c765152509d5c7e97876c63