avoid to conflicting types for 'uint32_t' error.
already uint32_t is defined at components/libc/compilers/minilibc/stdint.h. there is two ways to solve, using <stdint.h>/uint32_t pair or <rtthread.h>/rt_uint32_t pair. I choose former because this code belongs to C compiler, not RT-Thread system.
This commit is contained in:
parent
2416baf731
commit
54f23a4293
|
@ -12,10 +12,7 @@
|
||||||
* 2006-10-09 Bernard the first version for i386
|
* 2006-10-09 Bernard the first version for i386
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <rtthread.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
typedef rt_uint32_t uint32_t;
|
|
||||||
typedef rt_int32_t int32_t;
|
|
||||||
|
|
||||||
uint32_t __udivsi3(uint32_t num, uint32_t den)
|
uint32_t __udivsi3(uint32_t num, uint32_t den)
|
||||||
{
|
{
|
||||||
|
|
|
@ -12,10 +12,7 @@
|
||||||
* 2006-10-09 Bernard the first version for i386
|
* 2006-10-09 Bernard the first version for i386
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <rtthread.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
typedef rt_uint32_t uint32_t;
|
|
||||||
typedef rt_int32_t int32_t;
|
|
||||||
|
|
||||||
uint32_t __umodsi3(uint32_t num, uint32_t den)
|
uint32_t __umodsi3(uint32_t num, uint32_t den)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue