-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Function protoyypes with gcc attribute detection
- Loading branch information
Alexandre Gautier
committed
Nov 26, 2016
1 parent
df64190
commit 2c55d79
Showing
4 changed files
with
34 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/** | ||
* first - Called before main | ||
*/ | ||
void __attribute__((constructor)) first(void) | ||
{ | ||
printf("test\n"); | ||
} | ||
|
||
/** | ||
* first - Called before main | ||
*/ | ||
void __attribute__ ((constructor)) first(void) | ||
{ | ||
printf("test\n"); | ||
} | ||
|
||
/** | ||
* first - Called before main | ||
*/ | ||
void __attribute__((constructor))first(void) | ||
{ | ||
printf("test\n"); | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
first | ||
first | ||
first |