Skip to content

Commit

Permalink
Windows fixes (#60)
Browse files Browse the repository at this point in the history
* Fixed non-constant initializers warning

* Version 1.0.2
  • Loading branch information
Justin Boswell authored Jan 14, 2020
1 parent eb963fb commit dc67e90
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aws-crt",
"version": "1.0.1",
"version": "1.0.2",
"description": "NodeJS bindings to the aws-c-* libraries",
"homepage": "https://github.com/awslabs/aws-crt-nodejs",
"repository": "github:awslabs/aws-crt-nodejs",
Expand Down
9 changes: 9 additions & 0 deletions source/io.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,11 @@ static void s_client_bootstrap_finalize(napi_env env, void *finalize_data, void
aws_mem_release(allocator, binding);
}

#ifdef _MSC_VER
# pragma warning(push)
# pragma warning(disable : 4204 4221) /* non-standard aggregate initializer warnings */
#endif

napi_value aws_napi_io_client_bootstrap_new(napi_env env, napi_callback_info info) {
(void)info;

Expand Down Expand Up @@ -200,6 +205,10 @@ napi_value aws_napi_io_client_bootstrap_new(napi_env env, napi_callback_info inf
return NULL;
}

#ifdef _MSC_VER
# pragma warning(pop)
#endif

/** Finalizer for a tls_ctx external */
static void s_tls_ctx_finalize(napi_env env, void *finalize_data, void *finalize_hint) {

Expand Down

0 comments on commit dc67e90

Please sign in to comment.