News for hackers. Stuff that matters.
Re:Rust 1.56.0 and Rust 2021 by cpeterso on Thursday October 21, 2021 @03:21PM (#28949636)
A header file can check #if __STDC_VERSION__ or __cplusplus versions to make some code conditionally available for, say, C11 or C++11.

  #if __STDC_VERSION__ >= 201112L
    // C11 feature
  #endif

  #if __cplusplus >= 201103L
    // C++11 feature
  #endif

There are no comments on this comment yet.