From 8940d8566853a926bf02d96c4f50d7b7864069ad Mon Sep 17 00:00:00 2001 From: zhuyanlin Date: Mon, 30 Aug 2021 14:26:53 +0800 Subject: [PATCH] libxx:uClibcxx:fix-GCC-specific-definitiion error Use __GNUC__ instead of __GCC__ Change-Id: I285bd099cf973a89e21c5c7825250d1840615f36 --- ...efinitions-fix-GCC-specific-definiti.patch | 49 +++++++++++++++++++ libs/libxx/uClibc++.defs | 1 + 2 files changed, 50 insertions(+) create mode 100644 libs/libxx/0001-uClibcxx-basic_definitions-fix-GCC-specific-definiti.patch diff --git a/libs/libxx/0001-uClibcxx-basic_definitions-fix-GCC-specific-definiti.patch b/libs/libxx/0001-uClibcxx-basic_definitions-fix-GCC-specific-definiti.patch new file mode 100644 index 0000000000..5ca8181e81 --- /dev/null +++ b/libs/libxx/0001-uClibcxx-basic_definitions-fix-GCC-specific-definiti.patch @@ -0,0 +1,49 @@ +From 44aa27328deb99a1cf3253ce3af07bccdfd012f2 Mon Sep 17 00:00:00 2001 +From: zhuyanlin +Date: Mon, 30 Aug 2021 14:11:53 +0800 +Subject: [PATCH 1/2] uClibcxx:basic_definitions: fix GCC-specific definitions + +gcc use __GNUC__ instead off __GCC__ + +Change-Id: I63aeb2118f45a981653553c8a3721a9d9c7ccaaa +--- + include/basic_definitions | 4 ++-- + include/cstddef | 2 +- + 2 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/uClibc++/include/basic_definitions uClibc++/include/basic_definitions +index 9936563..1a8dc31 100644 +--- a/uClibc++/include/basic_definitions ++++ uClibc++/include/basic_definitions +@@ -33,13 +33,13 @@ + + #endif + +-#ifdef __GCC__ ++#ifdef __GNUC__ + #define __UCLIBCXX_NORETURN __attribute__ ((__noreturn__)) + #else + #define __UCLIBCXX_NORETURN + #endif + +-#ifdef __GCC__ ++#ifdef __GNUC__ + # ifndef _UCXX_NOTHROW + # ifndef __cplusplus + # define _UCXX_NOTHROW __attribute__((__nothrow__)) +diff --git a/uClibc++/include/cstddef uClibc++/include/cstddef +index d44834b..b229673 100644 +--- a/uClibc++/include/cstddef ++++ uClibc++/include/cstddef +@@ -43,7 +43,7 @@ + #ifndef _CPP_CSTDDEF + #define _CPP_CSTDDEF 1 + +-#ifdef __GCC__ ++#ifdef __GNUC__ + #pragma GCC system_header + #endif + +-- +2.25.1 + diff --git a/libs/libxx/uClibc++.defs b/libs/libxx/uClibc++.defs index c347f3c9af..1da0b747ba 100644 --- a/libs/libxx/uClibc++.defs +++ b/libs/libxx/uClibc++.defs @@ -27,6 +27,7 @@ $(TOPDIR)/include/uClibc++: $(Q) mv uClibc++-$(UCLIBCXX_VERSION) uClibc++ $(Q) $(DIRLINK) $(CURDIR)/uClibc++/include $(TOPDIR)/include/uClibc++ $(Q) $(COPYFILE) $(CURDIR)/system_configuration.h $(TOPDIR)/include/uClibc++ + $(Q) patch -p0 < 0001-uClibcxx-basic_definitions-fix-GCC-specific-definiti.patch context:: $(TOPDIR)/include/uClibc++