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 2022/04/20 12:11:51 UTC

[GitHub] [incubator-nuttx] xiaoxiang781216 commented on a diff in pull request #6108: assert: static_assert is not support in c standard C89,C99

xiaoxiang781216 commented on code in PR #6108:
URL: https://github.com/apache/incubator-nuttx/pull/6108#discussion_r854060482


##########
include/assert.h:
##########
@@ -77,7 +77,11 @@
  */
 
 #ifndef __cplusplus
-#  define static_assert _Static_assert
+#  if __STDC_VERSION__  > 199901L

Review Comment:
   let's chang to
   '''
   #if defined(__STDC_VERSION__) && __STDC_VERSION__ > 199001L
   '''
   improve the compability.
   



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

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org