You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In addition to the names documented in this manual, reserved names include all external identifiers (global functions and variables) that begin with an underscore (‘_’) and all identifiers regardless of use that begin with either two underscores or an underscore followed by a capital letter are reserved names. This is so that the library and header files can define functions, variables, and macros for internal purposes without risk of conflict with names in user programs.
There are two ways to fix this issue:
rename _U and _UL to something else (will also require changes in tests/check-namespace.sh.in file and other places?).
undefine _U explicitly:
--- a/include/libunwind-common.h.in+++ b/include/libunwind-common.h.in@@ -23,6 +23,8 @@ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
+#undef _U+
#define UNW_VERSION_MAJOR @PKG_MAJOR@
#define UNW_VERSION_MINOR @PKG_MINOR@
#define UNW_VERSION_EXTRA @PKG_EXTRA@
which approach is safe/better? If #1 is non-breaking-ABI, I would go for it (because #2 might have side effects).
The text was updated successfully, but these errors were encountered:
On SmartOS (and probably other Solaris-likes), gcc (v7) throws the following error:
According to glibc manual (http://www.gnu.org/software/libc/manual/html_node/Reserved-Names.html):
There are two ways to fix this issue:
_U
and_UL
to something else (will also require changes intests/check-namespace.sh.in
file and other places?)._U
explicitly:which approach is safe/better? If #1 is non-breaking-ABI, I would go for it (because #2 might have side effects).
The text was updated successfully, but these errors were encountered: