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.
macos/v1.5.9
Chun-wei Fan 9 years ago committed by Eric Anholt
parent 95ecc2d1a1
commit e242497728
  1. 2
      src/dispatch_common.c

@ -185,6 +185,8 @@ struct api {
static struct api api = {
#ifndef _WIN32
.mutex = PTHREAD_MUTEX_INITIALIZER,
#else
0,
#endif
};

Loading…
Cancel
Save