rename platform weak functions

This commit is contained in:
lyon 2021-12-07 19:33:58 +08:00
parent 1659e13091
commit 37437c9c8e
3 changed files with 4 additions and 2 deletions

View File

@ -16,7 +16,8 @@
"pikastdlib_memchecker.h": "c",
"pikaparser.h": "c",
"stdint.h": "c",
"cstdio": "c"
"cstdio": "c",
"cstdlib": "c"
},
"python.formatting.provider": "yapf"
}

View File

@ -27,6 +27,7 @@
#include "PikaPlatform.h"
#include <stdio.h>
#include <stdlib.h>
PIKA_WEAK void __platform_disable_irq_handle(void) {
/* disable irq to support thread */

View File

@ -29,8 +29,8 @@
#define __PIKA_PALTFORM__H
#include <stdarg.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <stdlib.h>
#if defined(__CC_ARM) || defined(__CLANG_ARM) /* ARM Compiler */
#define PIKA_WEAK __attribute__((weak))