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 @@ ...@@ -44,10 +44,14 @@
#else #else
#define LZHCALL #define LZHCALL
#endif #endif
#ifdef LZHDLL #ifdef LZHDLL /* LZH functions in DLL */
#define LZHEXPORT __declspec( dllexport ) #ifdef LZH_EXPORTS
#else #define LZHEXPORT __declspec( dllexport )
#define LZHEXPORT __declspec( dllimport ) #else
#define LZHEXPORT __declspec( dllimport )
#endif
#else /* self-contained executable */
#define LZHEXPORT
#endif #endif
#else /* !_WIN32 */ #else /* !_WIN32 */
#define LZHCALL #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