diff --git a/source/plutovg-canvas.c b/source/plutovg-canvas.c index 4d8024f..378e9c8 100644 --- a/source/plutovg-canvas.c +++ b/source/plutovg-canvas.c @@ -34,7 +34,7 @@ static void plutovg_stroke_data_copy(plutovg_stroke_data_t* stroke, const plutov static plutovg_paint_t* plutovg_paint_default(void) { - static PLUTOVG_THREAD_LOCAL plutovg_solid_paint_t paint = { + static plutovg_solid_paint_t paint = { {1, PLUTOVG_PAINT_TYPE_COLOR}, {0.f, 0.f, 0.f, 1.f} }; diff --git a/source/plutovg-paint.c b/source/plutovg-paint.c index 930b152..de16e6c 100644 --- a/source/plutovg-paint.c +++ b/source/plutovg-paint.c @@ -348,7 +348,7 @@ int plutovg_color_parse(plutovg_color_t* color, const char* data, int length) return it - data; } -static PLUTOVG_THREAD_LOCAL plutovg_paint_t* freed_paint[3]; +static plutovg_paint_t* freed_paint[3]; static void* plutovg_paint_create(plutovg_paint_type_t type, size_t size) { diff --git a/source/plutovg-utils.h b/source/plutovg-utils.h index 17d94a2..15e3a1e 100644 --- a/source/plutovg-utils.h +++ b/source/plutovg-utils.h @@ -9,16 +9,6 @@ #include #include -#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L -#define PLUTOVG_THREAD_LOCAL _Thread_local -#elif defined(_MSC_VER) -#define PLUTOVG_THREAD_LOCAL __declspec(thread) -#elif defined(__GNUC__) -#define PLUTOVG_THREAD_LOCAL __thread -#else -#define PLUTOVG_THREAD_LOCAL -#endif - #define plutovg_min(a, b) ((a) < (b) ? (a) : (b)) #define plutovg_max(a, b) ((a) > (b) ? (a) : (b)) #define plutovg_clamp(v, lo, hi) ((v) < (lo) ? (lo) : (hi) < (v) ? (hi) : (v))