libc.obj: Fixed div, ldiv, lldiv ( problem with the compatibility of returned structures in functions between tcc and gcc) thanks to Boppan).
git-svn-id: svn://kolibrios.org@9233 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
div_t div(int num, int den)
|
||||
{
|
||||
return (div_t){ num/den, num%den };
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
ldiv_t ldiv(long num, long den)
|
||||
{
|
||||
return (ldiv_t){ num/den, num%den };
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
lldiv_t lldiv(long long num, long long den)
|
||||
{
|
||||
return (lldiv_t){ num/den, num%den };
|
||||
}
|
||||
Reference in New Issue
Block a user