Commit 42ebcbfee4260e1bb76c84cd6c57849354f3dfc0

Daniel Mendler 2019-10-16T10:08:15

enable MP_PRIVATE (visibility=hidden)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/tommath_private.h b/tommath_private.h
index 3f4b23a..a6fd3e1 100644
--- a/tommath_private.h
+++ b/tommath_private.h
@@ -14,11 +14,9 @@
  *
  * On Unix symbols can be marked as hidden if libtommath is compiled
  * as a shared object. By default, symbols are visible.
- * As of now, this feature is opt-in via the MP_PRIVATE_SYMBOLS define.
- *
  * On Win32 a .def file must be used to specify the exported symbols.
  */
-#if defined (MP_PRIVATE_SYMBOLS) && defined(__GNUC__) && __GNUC__ >= 4
+#if defined(__GNUC__) && __GNUC__ >= 4
 #   define MP_PRIVATE __attribute__ ((visibility ("hidden")))
 #else
 #   define MP_PRIVATE