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/06/01 07:18:22 UTC

[GitHub] [incubator-nuttx] xiaoxiang781216 commented on a change in pull request #1164: Fix the build break during porting the latest libc++

xiaoxiang781216 commented on a change in pull request #1164:
URL: https://github.com/apache/incubator-nuttx/pull/1164#discussion_r433078488



##########
File path: include/stdlib.h
##########
@@ -216,6 +256,21 @@ FAR void *memalign(size_t, size_t);
 FAR void *zalloc(size_t);
 FAR void *calloc(size_t, size_t);
 
+#ifdef __cplusplus
+inline FAR void *aligned_alloc(size_t a, size_t s)
+{
+  return memalign(a, s);

Review comment:
       memalign don't set errno too, so errno isn't an issue here.




----------------------------------------------------------------
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