-
Notifications
You must be signed in to change notification settings - Fork 70
Open
Description
In header.h, globals variables are called the following way:
extern const char *CJOSE_HDR_ALG;
In Visual C++, there's no way to have that declaration included in a third-party application, even by providing a DEF file. All exported variables have to be declared with
extern __declspec(dllimport).
Proposal, compatible with Visual C++ and others:
#ifdef _MSC_VER
# ifdef CJOSE_BUILD
# define EXTERN extern __declspec(dllexport)
# else
# define EXTERN extern __declspec(dllimport)
# endif
#else
# define EXTERN extern
#endif
EXTERN const char *CJOSE_HDR_ALG;
Metadata
Metadata
Assignees
Labels
No labels