From e2424977284e7f0f124b2ae84d48addbfbf4b03e Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Fri, 5 Jun 2015 17:37:01 -0700 Subject: [PATCH] Avoid empty struct intializer on MSVC. It is a C99 feature that is not supported (nor will it probably be at any point) on Visual Studio. --- src/dispatch_common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dispatch_common.c b/src/dispatch_common.c index e7979c9..1baaf36 100644 --- a/src/dispatch_common.c +++ b/src/dispatch_common.c @@ -185,6 +185,8 @@ struct api { static struct api api = { #ifndef _WIN32 .mutex = PTHREAD_MUTEX_INITIALIZER, +#else + 0, #endif };