• R/O
  • HTTP
  • SSH
  • HTTPS

cinnamon: Commit

Cinnamon audio library


Commit MetaInfo

Revisionc5de95890c21255fee536eea989deb91bc8ce1a1 (tree)
Zeit2019-07-08 02:43:48
AutorAlaskanEmily <emily@alas...>
CommiterAlaskanEmily

Log Message

Update the export directives to work with the new makefile

Ändern Zusammenfassung

Diff

--- a/src/cin_export.h
+++ b/src/cin_export.h
@@ -11,16 +11,23 @@
1111
1212 /* For a DLL build, use dllimport. Since we use a DEF file, we do not need
1313 * to use dllexport. */
14- #if (!defined(CIN_STATIC)) && !defined CIN_INTERNAL
15-
16- #define CIN_DLL_EXPORT(X) __declspec(dllimport) X
14+ #if (!defined(CIN_STATIC))
15+
16+ #ifdef CIN_INTERNAL
17+
18+ #define CIN_DLL_EXPORT(X) __declspec(dllexport) X
1719
20+ #else /* CIN_DLL */
21+
22+ #define CIN_DLL_EXPORT(X) __declspec(dllimport) X
23+
24+ #endif /* CIN_DLL */
25+
1826 #else /* CIN_DLL */
1927
2028 #define CIN_DLL_EXPORT(X) X
2129
22- #endif /* CIN_DLL */
23-
30+ #endif
2431 /* Use the C calling convention for all exported symbols. */
2532 #define CIN_EXPORT(X) CIN_DLL_EXPORT(X) __cdecl
2633
Show on old repository browser