commit | e2424977284e7f0f124b2ae84d48addbfbf4b03e | [log] [tgz] |
---|---|---|
author | Chun-wei Fan <fanchunwei@src.gnome.org> | Fri Jun 05 17:37:01 2015 -0700 |
committer | Eric Anholt <eric@anholt.net> | Fri Jun 05 17:51:08 2015 -0700 |
tree | 22a8fbd73c3203b82e43b940e95447ade0949b60 | |
parent | 95ecc2d1a1731c7018cea1d11d1ad85a71629d21 [diff] |
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.
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 @@ static struct api api = { #ifndef _WIN32 .mutex = PTHREAD_MUTEX_INITIALIZER, +#else + 0, #endif };