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 10 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 = { static struct api api = {
#ifndef _WIN32 #ifndef _WIN32
.mutex = PTHREAD_MUTEX_INITIALIZER, .mutex = PTHREAD_MUTEX_INITIALIZER,
#else
0,
#endif #endif
}; };

Loading…
Cancel
Save