Skip to content

gen,os: fix tcc __attribute__, fix os.notify#25804

Merged
spytheman merged 2 commits into
vlang:masterfrom
kbkpbot:fix-os-notify-tcc-attribute
Nov 21, 2025
Merged

gen,os: fix tcc __attribute__, fix os.notify#25804
spytheman merged 2 commits into
vlang:masterfrom
kbkpbot:fix-os-notify-tcc-attribute

Conversation

@kbkpbot

@kbkpbot kbkpbot commented Nov 21, 2025

Copy link
Copy Markdown
Contributor

This is a extend of PR #25779

According to
https://github.com/TinyCC/tinycc/blob/7e4fc3a0d01173575b3b29f71ae4da87322ba14b/tcc.h#L28-L35

#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>
/* gnu headers use to #define __attribute__ to empty for non-gcc compilers */
#ifdef __TINYC__
# undef __attribute__
#endif

and a discussion at https://lists.nongnu.org/archive/html/tinycc-devel/2025-10/msg00006.html

It need to fix the header for tcc work with __attribute__.

@spytheman spytheman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent work.
Thanks for investigating @kbkpbot 🙇🏻 .

@spytheman spytheman merged commit 0c7de2e into vlang:master Nov 21, 2025
85 checks passed
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.

2 participants