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"
|
||||
end
|
||||
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"}
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
// memset - may be optimized
|
||||
typedef unsigned int size_t;
|
||||
static inline void* memset(void *mem, int c, unsigned size) {
|
||||
|
||||
for (unsigned int i = 0; i < size; i++ )
|
||||
unsigned int i;
|
||||
for (i = 0; i < size; i++ )
|
||||
*((char *)mem+i) = (char) c;
|
||||
|
||||
return mem;
|
||||
|
@ -14,8 +14,8 @@ static inline void* memset(void *mem, int c, unsigned size) {
|
|||
|
||||
// memcpy - may be optimized
|
||||
void* memcpy(void *dest, const void *src, size_t count) {
|
||||
|
||||
for (unsigned int i = 0; i < count; i++)
|
||||
unsigned int i;
|
||||
for (i = 0; i < count; i++)
|
||||
*(char *)(dest+i) = *(char *)(src+i);
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue