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:

committed by
Nico Williams

parent
bec4818943
commit
1dd38cc3de
@@ -33,7 +33,7 @@
|
||||
|
||||
#include "hx_locl.h"
|
||||
|
||||
struct hx_expr *
|
||||
HX509_LIB_FUNCTION struct hx_expr * HX509_LIB_CALL
|
||||
_hx509_make_expr(enum hx_expr_op op, void *arg1, void *arg2)
|
||||
{
|
||||
struct hx_expr *expr;
|
||||
@@ -155,7 +155,7 @@ eval_comp(hx509_context context, hx509_env env, struct hx_expr *expr)
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
int
|
||||
HX509_LIB_FUNCTION int HX509_LIB_CALL
|
||||
_hx509_expr_eval(hx509_context context, hx509_env env, struct hx_expr *expr)
|
||||
{
|
||||
switch (expr->op) {
|
||||
@@ -179,7 +179,7 @@ _hx509_expr_eval(hx509_context context, hx509_env env, struct hx_expr *expr)
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
HX509_LIB_FUNCTION void HX509_LIB_CALL
|
||||
_hx509_expr_free(struct hx_expr *expr)
|
||||
{
|
||||
switch (expr->op) {
|
||||
@@ -204,7 +204,7 @@ _hx509_expr_free(struct hx_expr *expr)
|
||||
free(expr);
|
||||
}
|
||||
|
||||
struct hx_expr *
|
||||
HX509_LIB_FUNCTION struct hx_expr * HX509_LIB_CALL
|
||||
_hx509_expr_parse(const char *buf)
|
||||
{
|
||||
_hx509_expr_input.buf = buf;
|
||||
|
Reference in New Issue
Block a user