Skip to content

Conversation

@LekKit
Copy link

@LekKit LekKit commented Aug 29, 2025

  • Undefine various macros set by Clang preprocessor
  • Define __cproc__ macro for compiler detection
  • For example to determine __thread attribute support in C99 mode, and other GNU extensions without actually defining __GNUC__, which would confuse it with GCC

- Undefine various macros set by Clang preprocessor
- Define __cproc__ macro for compiler detection
LekKit added a commit to LekKit/RVVM that referenced this pull request Aug 29, 2025
- Enable GNU_EXTS on TCC, SlimCC
- Provide COMPILER_IS_GCC, COMPILER_IS_CLANG, COMPILER_IS_MSVC to aid specific compiler detection
- Enable __thread attribute support on SlimCC, Cproc
- Note that __cproc__ is not yet defined by Cproc, a PR is open: michaelforney/cproc#6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant