summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2015-06-05 17:37:01 -0700
committerEric Anholt <eric@anholt.net>2015-06-05 17:51:08 -0700
commite2424977284e7f0f124b2ae84d48addbfbf4b03e (patch)
tree22a8fbd73c3203b82e43b940e95447ade0949b60
parent95ecc2d1a1731c7018cea1d11d1ad85a71629d21 (diff)
downloadlibepoxy-e2424977284e7f0f124b2ae84d48addbfbf4b03e.tar.gz
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.
-rw-r--r--src/dispatch_common.c2
1 files changed, 2 insertions, 0 deletions
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
};