Skip to content

Commit

Permalink
Update Xpress9Wrapper.h
Browse files Browse the repository at this point in the history
remove the DLL macros
  • Loading branch information
Hugoberry authored Apr 1, 2024
1 parent 75f7a3c commit e95aad2
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions src/xpress9/Xpress9Wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,29 +14,10 @@ using VOID = void;

#define UNREFERENCED_PARAMETER(P) (void)(P)

#if defined(_MSC_VER) // Microsoft's Visual Studio compiler
#ifdef XPRESS9WRAPPERLIB_EXPORT
#define XPRESS9WRAPPERLIB_API __declspec(dllexport)
#else
#define XPRESS9WRAPPERLIB_API __declspec(dllimport)
#endif
#else // GCC, Clang, and others
#ifdef XPRESS9WRAPPERLIB_EXPORT
#define XPRESS9WRAPPERLIB_API __attribute__((visibility("default")))
#else
#define XPRESS9WRAPPERLIB_API
#endif
#endif

extern "C" {
XPRESS9WRAPPERLIB_API BOOL Initialize();
XPRESS9WRAPPERLIB_API VOID Terminate();
XPRESS9WRAPPERLIB_API UINT Decompress(BYTE * compressed, INT compressedSize, BYTE * original, INT maxOriginalSize);
};
//
// Lightweight wrapper on top of XPress library.
//
class XPRESS9WRAPPERLIB_API XPress9Wrapper
class XPress9Wrapper
{
public:

Expand Down

0 comments on commit e95aad2

Please sign in to comment.