Skip to content

Commit 5234c03

Browse files
authored
Merge pull request #41 from compnerd/dllstorage
CIndexStoreDB: correct dllstorage annotation
2 parents 7cf04b8 + 7bd3fe1 commit 5234c03

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

include/CIndexStoreDB/CIndexStoreDB.h

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,14 @@
2626
#endif
2727

2828
#ifndef INDEXSTOREDB_PUBLIC
29-
# if defined (_MSC_VER)
30-
# define INDEXSTOREDB_PUBLIC __declspec(dllimport)
29+
# if defined(_WIN32) && defined(_DLL)
30+
# if defined(CIndexStoreDB_EXPORTS)
31+
# define INDEXSTOREDB_PUBLIC __declspec(dllexport)
32+
# else
33+
# define INDEXSTOREDB_PUBLIC __declspec(dllimport)
34+
# endif
3135
# else
32-
# define INDEXSTOREDB_PUBLIC
36+
# define INDEXSTOREDB_PUBLIC
3337
# endif
3438
#endif
3539

0 commit comments

Comments
 (0)