diff options
| author | rfric <43748255+rfric@users.noreply.github.com> | 2019-03-25 21:30:49 +0100 |
|---|---|---|
| committer | Phil Christensen <philc@microsoft.com> | 2019-03-25 13:30:49 -0700 |
| commit | 36d9d998a354f99e2b5af85c239882d6fafe9073 (patch) | |
| tree | 73919f19a50aa27037b740b612fabb9f7e6a2758 /ports | |
| parent | f24580ef55b5d1f6394008ba76cb2d7c4dde2647 (diff) | |
| download | vcpkg-36d9d998a354f99e2b5af85c239882d6fafe9073.tar.gz vcpkg-36d9d998a354f99e2b5af85c239882d6fafe9073.zip | |
[pbc] Correct compilation warnings (#5794)
Diffstat (limited to 'ports')
| -rw-r--r-- | ports/pbc/CONTROL | 2 | ||||
| -rw-r--r-- | ports/pbc/windows.patch | 22 |
2 files changed, 23 insertions, 1 deletions
diff --git a/ports/pbc/CONTROL b/ports/pbc/CONTROL index a8ee10486..ba09843de 100644 --- a/ports/pbc/CONTROL +++ b/ports/pbc/CONTROL @@ -1,4 +1,4 @@ Source: pbc -Version: 0.5.14 +Version: 0.5.14-1 Build-Depends: mpir Description: Pairing-Based Crypto library provides low-level routines for pairing-based cryptosystems. diff --git a/ports/pbc/windows.patch b/ports/pbc/windows.patch index 5b790767a..ea4942cde 100644 --- a/ports/pbc/windows.patch +++ b/ports/pbc/windows.patch @@ -1,3 +1,25 @@ +diff --git "a/include/pbc_curve.h" "b/include/pbc_curve.h" +--- "a/include/pbc_curve.h" ++++ "b/include/pbc_curve.h" +@@ -60,7 +60,9 @@ + + void field_curve_set_quotient_cmp(field_ptr c, mpz_t quotient_cmp); + ++#ifdef __GNUC__ + #pragma GCC visibility push(hidden) ++#endif + // Internal: + + element_ptr curve_x_coord(element_t e); +@@ -74,6 +76,8 @@ + void curve_set_si(element_t R, long int x, long int y); + void curve_set_gen_no_cofac(element_ptr a); + ++#ifdef __GNUC__ + #pragma GCC visibility pop ++#endif + + #endif //__PBC_CURVE_H__ diff --git "a/include/pbc_vc_compat.win32.h" "b/include/pbc_vc_compat.win32.h" index 27d3bba..7f772d4 100644 --- "a/include/pbc_vc_compat.win32.h" |
