Skip to content

Commit

Permalink
fixes nanomsg#1182 v1.2.5 build fails gcc 4.8
Browse files Browse the repository at this point in the history
  • Loading branch information
gdamore committed Feb 6, 2020
1 parent f09cc5e commit 8d3b538
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/platform/posix/posix_atomic.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright 2019 Staysail Systems, Inc. <[email protected]>
// Copyright 2020 Staysail Systems, Inc. <[email protected]>
// Copyright 2018 Capitar IT Group BV <[email protected]>
//
// This software is supplied under the terms of the MIT License, a
Expand Down Expand Up @@ -134,14 +134,14 @@ nni_atomic_flag_reset(nni_atomic_flag *f)
}

void
nni_atomic_set_bool(nni_atomic_bool *b)
nni_atomic_set_bool(nni_atomic_bool *b, bool n)
{
pthread_mutex_lock(&plat_atomic_lock);
b->b = false;
b->b = n;
pthread_mutex_unlock(&plat_atomic_lock);
}

void
bool
nni_atomic_get_bool(nni_atomic_bool *b)
{
bool v;
Expand All @@ -151,7 +151,7 @@ nni_atomic_get_bool(nni_atomic_bool *b)
return (v);
}

void
bool
nni_atomic_swap_bool(nni_atomic_bool *b, bool n)
{
bool v;
Expand Down
4 changes: 2 additions & 2 deletions src/platform/posix/posix_impl.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright 2019 Staysail Systems, Inc. <[email protected]>
// Copyright 2020 Staysail Systems, Inc. <[email protected]>
// Copyright 2018 Capitar IT Group BV <[email protected]>
//
// This software is supplied under the terms of the MIT License, a
Expand Down Expand Up @@ -96,7 +96,7 @@ struct nni_atomic_flag {
bool f;
};

struct nni_atomic_bol {
struct nni_atomic_bool {
bool b;
};

Expand Down

0 comments on commit 8d3b538

Please sign in to comment.