diff mbox series

Include cstddef in the header for C++

Message ID 20211216151950.2294383-1-open.source@oleksandr-kravchuk.com
State Accepted
Headers show
Series Include cstddef in the header for C++ | expand

Commit Message

Oleksandr Kravchuk Dec. 16, 2021, 3:19 p.m. UTC
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(+)

Comments

Stefano Babic Dec. 16, 2021, 4 p.m. UTC | #1
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
Oleksandr Kravchuk Feb. 7, 2022, 9:41 p.m. UTC | #2
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
>
>
Stefano Babic Feb. 7, 2022, 9:56 p.m. UTC | #3
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 mbox series

Patch

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