Skip to content

Commit ffe2d5b

Browse files
committed
win32: avoid dll declaration for bundled files
Some of the app builds just bundle the files directly in which case neither dll declaration was appropriate.
1 parent 1a4f998 commit ffe2d5b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/rtklib.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,10 @@ extern "C" {
5555
#ifdef _MSC_VER
5656
#ifdef WIN_DLL /* for Windows DLL */
5757
#define EXPORT __declspec(dllexport)
58-
#else
58+
#elif !defined(WIN_STATIC)
5959
#define EXPORT __declspec(dllimport)
60+
#else
61+
#define EXPORT // For files bundled into an app.
6062
#endif
6163
#else
6264
#define EXPORT

0 commit comments

Comments
 (0)