You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2020/03/26 10:51:01 UTC
[GitHub] [incubator-nuttx] PetervdPerk-NXP opened a new issue #630: NuttX
UINT32_C portability issue
PetervdPerk-NXP opened a new issue #630: NuttX UINT32_C portability issue
URL: https://github.com/apache/incubator-nuttx/issues/630
In stdint.h UINT32_C has not been defined.
Per section 7.20.4.1 of the ISO C11 standard, these macros shall be defined by a compliant implementation of the standard library.
```
#if 0 /* REVISIT: Depends on architecture specific implementation */
#define INT8_C(x) x
#define INT16_C(x) x
#define INT32_C(x) x ## l
#define INT64_C(x) x ## ll
#define UINT8_C(x) x
#define UINT16_C(x) x
#define UINT32_C(x) x ## ul
#define UINT64_C(x) x ## ull
#endif
```
What would be a correct solution to define these macros for the corresponding CPU architecture?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-nuttx] PetervdPerk-NXP commented on issue #630: NuttX UINT32_C portability issue
Posted by GitBox <gi...@apache.org>.
PetervdPerk-NXP commented on issue #630:
URL: https://github.com/apache/incubator-nuttx/issues/630#issuecomment-651807553
It seems that is issue has been fixed by this commit https://github.com/apache/incubator-nuttx/commit/7758eb865818d903dceeda4dd238985407673436, @xiaoxiang781216 that's correct right?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-nuttx] xiaoxiang781216 commented on issue #630: NuttX UINT32_C portability issue
Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 commented on issue #630:
URL: https://github.com/apache/incubator-nuttx/issues/630#issuecomment-651828828
Yes, thanks for closing the issue.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-nuttx] PetervdPerk-NXP closed issue #630: NuttX UINT32_C portability issue
Posted by GitBox <gi...@apache.org>.
PetervdPerk-NXP closed issue #630:
URL: https://github.com/apache/incubator-nuttx/issues/630
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org