You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by gu...@apache.org on 2021/12/29 11:11:23 UTC

[incubator-nuttx] 07/07: sched: Remove the condition guard from environ macro

This is an automated email from the ASF dual-hosted git repository.

gustavonihei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit a698100de320ae0e68548b9b1deb90431482db96
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Sun Dec 19 17:24:25 2021 +0800

    sched: Remove the condition guard from environ macro
    
    Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
 include/stdlib.h | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/include/stdlib.h b/include/stdlib.h
index 690ac4c..81e9396 100644
--- a/include/stdlib.h
+++ b/include/stdlib.h
@@ -62,9 +62,7 @@
  * function call.  However, get_environ_ptr() can be used in its place.
  */
 
-#ifndef CONFIG_DISABLE_ENVIRON
-#  define environ get_environ_ptr()
-#endif
+#define environ get_environ_ptr()
 
 #if defined(CONFIG_FS_LARGEFILE) && defined(CONFIG_HAVE_LONG_LONG)
 #  define mkstemp64            mkstemp