forked from KolibriOS/kolibrios
Try to build minimp3.obj #2
git-svn-id: svn://kolibrios.org@8030 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
b3123b6e61
commit
8eb204c9df
@ -4,5 +4,5 @@ then
|
|||||||
HELPERDIR = "../../../programs"
|
HELPERDIR = "../../../programs"
|
||||||
end
|
end
|
||||||
tup.include(HELPERDIR .. "/use_gcc.lua")
|
tup.include(HELPERDIR .. "/use_gcc.lua")
|
||||||
CFLAGS = CFLAGS_OPTIMIZE_SPEED .. " -o minimp3.obj -nostdlib -fwhole-program"
|
CFLAGS = CFLAGS_OPTIMIZE_SPEED .. " -o minimp3.obj -U_WIN32 -nostdlib -fwhole-program"
|
||||||
compile_gcc{"minimp3.c"}
|
compile_gcc{"minimp3.c"}
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
// memset - may be optimized
|
// memset - may be optimized
|
||||||
typedef unsigned int size_t;
|
typedef unsigned int size_t;
|
||||||
static inline void* memset(void *mem, int c, unsigned size) {
|
static inline void* memset(void *mem, int c, unsigned size) {
|
||||||
|
unsigned int i;
|
||||||
for (unsigned int i = 0; i < size; i++ )
|
for (i = 0; i < size; i++ )
|
||||||
*((char *)mem+i) = (char) c;
|
*((char *)mem+i) = (char) c;
|
||||||
|
|
||||||
return mem;
|
return mem;
|
||||||
@ -14,8 +14,8 @@ static inline void* memset(void *mem, int c, unsigned size) {
|
|||||||
|
|
||||||
// memcpy - may be optimized
|
// memcpy - may be optimized
|
||||||
void* memcpy(void *dest, const void *src, size_t count) {
|
void* memcpy(void *dest, const void *src, size_t count) {
|
||||||
|
unsigned int i;
|
||||||
for (unsigned int i = 0; i < count; i++)
|
for (i = 0; i < count; i++)
|
||||||
*(char *)(dest+i) = *(char *)(src+i);
|
*(char *)(dest+i) = *(char *)(src+i);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user