Add new __lc_used macro

This commit is contained in:
apio 2022-10-21 18:39:46 +02:00
parent fcd6d9b9f5
commit 43073cfdbb
2 changed files with 2 additions and 1 deletions

View File

@ -5,5 +5,6 @@
#define __lc_align(n) __attribute__((aligned(n)))
#define __lc_deprecated(msg) __attribute__((deprecated(msg)))
#define __lc_unreachable __builtin_unreachable
#define __lc_used __attribute__((used))
#endif

View File

@ -4,7 +4,7 @@
#include <stdlib.h>
#include <unistd.h>
__attribute__((used)) const char* __argv[] = {NULL}; // For now.
__lc_used const char* __argv[] = {NULL}; // For now.
static void terminate_libc()
{