-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This change makes the `-fvisibility=hidden` compiler option unnecessary.
- Loading branch information
Showing
4 changed files
with
20 additions
and
3 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
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
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
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#ifndef SECP256K1_LOCAL_VISIBILITY_H | ||
#define SECP256K1_LOCAL_VISIBILITY_H | ||
|
||
/* Global variable visibility */ | ||
/* See: https://github.com/bitcoin-core/secp256k1/issues/1181 */ | ||
#if !defined(_WIN32) && defined(__GNUC__) && (__GNUC__ >= 4) | ||
# define SECP256K1_LOCAL_VAR extern __attribute__ ((visibility ("hidden"))) | ||
#else | ||
# define SECP256K1_LOCAL_VAR extern | ||
#endif | ||
|
||
#endif /* SECP256K1_LOCAL_VISIBILITY_H */ |