Avoid exporting symbols for internal functions declared within libsyncthinginternal.h

This commit is contained in:
Martchus 2021-06-16 22:52:38 +02:00
parent 9ce9b11ba4
commit 303cea3658
1 changed files with 10 additions and 0 deletions

View File

@ -1,5 +1,15 @@
#include "./interface.h"
// avoid exporting symbols for internal functions declared within libsyncthinginternal.h as we
// are building a static library here
// note: cgo uses `__declspec` despite `-buildmode c-archive`; bug or feature?
#ifdef PLATFORM_WINDOWS
#ifdef __declspec
#undef __declspec
#endif
#define __declspec(foo)
#endif
#include "libsyncthinginternal.h"
#include <atomic>