diff options
Diffstat (limited to 'src/liblzma/api/lzma.h')
-rw-r--r-- | src/liblzma/api/lzma.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/liblzma/api/lzma.h b/src/liblzma/api/lzma.h index 24bdc74e..bb617213 100644 --- a/src/liblzma/api/lzma.h +++ b/src/liblzma/api/lzma.h @@ -149,6 +149,23 @@ #endif /* ifdef LZMA_MANUAL_HEADERS */ +/****************** + * LZMA_API macro * + ******************/ + +/* + * Some systems require that the functions are declared specially + * in the headers. + */ +#ifndef LZMA_API +# if defined(_WIN32) +# define LZMA_API __cdecl __declspec(dllimport) +# else +# define LZMA_API +# endif +#endif + + /******************** * GNU C extensions * ********************/ |