Skip to content

Commit

Permalink
Fix x86 Windows build: add APU_DECLARE() apr_jose*() and apr_json_*()
Browse files Browse the repository at this point in the history
function implementation.

git-svn-id: https://svn.apache.org/repos/asf/apr/apr-util/branches/1.7.x@1920660 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Ivan Zhakov committed Sep 14, 2024
1 parent 60daebf commit 322f45c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion jose/apr_jose_encode.c
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ static apr_status_t apr_jose_encode_json_jws(apr_bucket_brigade *brigade,
return status;
}

apr_status_t apr_jose_encode(apr_bucket_brigade *brigade,
APU_DECLARE(apr_status_t) apr_jose_encode(apr_bucket_brigade *brigade,
apr_brigade_flush flush, void *ctx, apr_jose_t *jose, apr_jose_cb_t *cb,
apr_pool_t *pool)
{
Expand Down
4 changes: 2 additions & 2 deletions json/apr_json_decode.c
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@ static apr_status_t apr_json_decode_value(apr_json_scanner_t * self, apr_json_va
return status;
}

apr_status_t apr_json_decode(apr_json_value_t ** retval, const char *injson,
APU_DECLARE(apr_status_t) apr_json_decode(apr_json_value_t ** retval, const char *injson,
apr_ssize_t injson_size, apr_off_t * offset, int flags, int level,
apr_pool_t * pool)
{
Expand Down Expand Up @@ -807,7 +807,7 @@ apr_status_t apr_json_decode(apr_json_value_t ** retval, const char *injson,

#else
/* we do not yet support JSON on EBCDIC platforms, but will do in future */
apr_status_t apr_json_decode(apr_json_value_t ** retval, const char *injson,
APU_DECLARE(apr_status_t) apr_json_decode(apr_json_value_t ** retval, const char *injson,
apr_size_t injson_size, apr_pool_t * pool)
{
return APR_ENOTIMPL;
Expand Down
4 changes: 2 additions & 2 deletions json/apr_json_encode.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ static apr_status_t apr_json_encode_value(apr_json_serializer_t * self, const ap
return status;
}

apr_status_t apr_json_encode(apr_bucket_brigade * brigade, apr_brigade_flush flush,
APU_DECLARE(apr_status_t) apr_json_encode(apr_bucket_brigade * brigade, apr_brigade_flush flush,
void *ctx, const apr_json_value_t * json, int flags, apr_pool_t * pool)
{
apr_json_serializer_t serializer = {pool, brigade, flush, ctx, flags};
Expand All @@ -299,7 +299,7 @@ apr_status_t apr_json_encode(apr_bucket_brigade * brigade, apr_brigade_flush flu

#else
/* we do not yet support JSON on EBCDIC platforms, but will do in future */
apr_status_t apr_json_encode(apr_bucket_brigade * brigade, apr_brigade_flush flush,
APU_DECLARE(apr_status_t) apr_json_encode(apr_bucket_brigade * brigade, apr_brigade_flush flush,
void *ctx, const apr_json_value_t * json, apr_pool_t * pool)
{
return APR_ENOTIMPL;
Expand Down

0 comments on commit 322f45c

Please sign in to comment.