diff --git a/syncthing/interface.cpp b/syncthing/interface.cpp index bf3aa63..e765dec 100644 --- a/syncthing/interface.cpp +++ b/syncthing/interface.cpp @@ -10,6 +10,11 @@ #define __declspec(foo) #endif +// enforce use of the C header for complex types as cgo's typedefs rely on it +#ifdef _MSC_VER +#define _CRT_USE_C_COMPLEX_H +#endif + #include "libsyncthinginternal.h" #include