Skip to content
Snippets Groups Projects
Commit 034e8915 authored by rswindell's avatar rswindell
Browse files

Only declares functions as import/export if LZHDLL is defined.

parent fd5a17e6
No related branches found
No related tags found
No related merge requests found
......@@ -44,10 +44,14 @@
#else
#define LZHCALL
#endif
#ifdef LZHDLL
#define LZHEXPORT __declspec( dllexport )
#else
#define LZHEXPORT __declspec( dllimport )
#ifdef LZHDLL /* LZH functions in DLL */
#ifdef LZH_EXPORTS
#define LZHEXPORT __declspec( dllexport )
#else
#define LZHEXPORT __declspec( dllimport )
#endif
#else /* self-contained executable */
#define LZHEXPORT
#endif
#else /* !_WIN32 */
#define LZHCALL
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment