Message ID | 20211216151950.2294383-1-open.source@oleksandr-kravchuk.com |
---|---|
State | Accepted |
Headers | show |
Series | Include cstddef in the header for C++ | expand |
On 16.12.21 16:19, Oleksandr Kravchuk wrote: > So C++ compiler always has access to the definition of size_t. > > Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com> > --- > src/libuboot.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/src/libuboot.h b/src/libuboot.h > index 88f0558..1f305f4 100644 > --- a/src/libuboot.h > +++ b/src/libuboot.h > @@ -6,6 +6,8 @@ > */ > > #ifdef __cplusplus > +#include <cstddef> > + > extern "C" { > #endif > > Applied to -master, thanks ! Best regards, Stefano Babic
Hey Stefano, > Applied to -master, thanks ! I am a bit confused - there only repo I'm aware of is sbabic/libubootenv on github and it's not there. Is there another official repository? Thanks. On 16/12/2021 17:00, Stefano Babic wrote: > On 16.12.21 16:19, Oleksandr Kravchuk wrote: >> So C++ compiler always has access to the definition of size_t. >> >> Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com> >> --- >> src/libuboot.h | 2 ++ >> 1 file changed, 2 insertions(+) >> >> diff --git a/src/libuboot.h b/src/libuboot.h >> index 88f0558..1f305f4 100644 >> --- a/src/libuboot.h >> +++ b/src/libuboot.h >> @@ -6,6 +6,8 @@ >> */ >> #ifdef __cplusplus >> +#include <cstddef> >> + >> extern "C" { >> #endif >> > > Applied to -master, thanks ! > > Best regards, > Stefano Babic > >
Hi Oleksandr, On 07.02.22 22:41, Oleksandr Kravchuk wrote: > Hey Stefano, > > > > Applied to -master, thanks ! > > I am a bit confused - there only repo I'm aware of is sbabic/libubootenv > on github and it's not there. > > Is there another official repository? > My fault - I use for CI this repo (https://source.denx.de/swupdate/libubootenv), and I forgot to push on the official repo on github. It should be ok now - thanks for reporting ! Best regards, Stefano Babic > Thanks. > > On 16/12/2021 17:00, Stefano Babic wrote: >> On 16.12.21 16:19, Oleksandr Kravchuk wrote: >>> So C++ compiler always has access to the definition of size_t. >>> >>> Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com> >>> --- >>> src/libuboot.h | 2 ++ >>> 1 file changed, 2 insertions(+) >>> >>> diff --git a/src/libuboot.h b/src/libuboot.h >>> index 88f0558..1f305f4 100644 >>> --- a/src/libuboot.h >>> +++ b/src/libuboot.h >>> @@ -6,6 +6,8 @@ >>> */ >>> #ifdef __cplusplus >>> +#include <cstddef> >>> + >>> extern "C" { >>> #endif >>> >> >> Applied to -master, thanks ! >> >> Best regards, >> Stefano Babic >> >> >
diff --git a/src/libuboot.h b/src/libuboot.h index 88f0558..1f305f4 100644 --- a/src/libuboot.h +++ b/src/libuboot.h @@ -6,6 +6,8 @@ */ #ifdef __cplusplus +#include <cstddef> + extern "C" { #endif
So C++ compiler always has access to the definition of size_t. Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com> --- src/libuboot.h | 2 ++ 1 file changed, 2 insertions(+)