forked from nanomsg/nng
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes nanomsg#1182 v1.2.5 build fails gcc 4.8
- Loading branch information
Showing
2 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
@@ -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; | ||
|
@@ -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; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
@@ -96,7 +96,7 @@ struct nni_atomic_flag { | |
bool f; | ||
}; | ||
|
||
struct nni_atomic_bol { | ||
struct nni_atomic_bool { | ||
bool b; | ||
}; | ||
|
||
|