lib/hx509: declare and apply HX509_LIB_xxx macros

libhx509 is not built according to the same export and calling conventions
on Windows as the other libraries.  This change declares and applies
HX509_LIB_FUNCTION, HX509_LIB_NORETURN_FUNCTION, HX509_LIB_CALL and
HX509_LIB_VARIABLE to lib/hx509.

As a result of this change the calling convention for exported functions
will be __stdcall instead of __cdecl.

Change-Id: Ibc3f05e8088030ef7d13798f1d9c9b190bc57797
This commit is contained in:
Jeffrey Altman
2019-01-02 01:50:52 -05:00
committed by Nico Williams
parent bec4818943
commit 1dd38cc3de
26 changed files with 321 additions and 299 deletions

View File

@@ -52,7 +52,7 @@
* @ingroup hx509_env
*/
int
HX509_LIB_FUNCTION int HX509_LIB_CALL
hx509_env_add(hx509_context context, hx509_env *env,
const char *key, const char *value)
{
@@ -103,7 +103,7 @@ hx509_env_add(hx509_context context, hx509_env *env,
* @ingroup hx509_env
*/
int
HX509_LIB_FUNCTION int HX509_LIB_CALL
hx509_env_add_binding(hx509_context context, hx509_env *env,
const char *key, hx509_env list)
{
@@ -150,7 +150,7 @@ hx509_env_add_binding(hx509_context context, hx509_env *env,
* @ingroup hx509_env
*/
const char *
HX509_LIB_FUNCTION const char * HX509_LIB_CALL
hx509_env_lfind(hx509_context context, hx509_env env,
const char *key, size_t len)
{
@@ -175,7 +175,7 @@ hx509_env_lfind(hx509_context context, hx509_env env,
* @ingroup hx509_env
*/
const char *
HX509_LIB_FUNCTION const char * HX509_LIB_CALL
hx509_env_find(hx509_context context, hx509_env env, const char *key)
{
while(env) {
@@ -236,7 +236,7 @@ env_free(hx509_env b)
* @ingroup hx509_env
*/
void
HX509_LIB_FUNCTION void HX509_LIB_CALL
hx509_env_free(hx509_env *env)
{
if (*env)