Merge pull request #18 from mid-kid/master

Changes for new devkitARM and ctrulib
This commit is contained in:
mtheall 2015-02-26 21:19:06 -06:00
commit f505422c44
2 changed files with 4 additions and 5 deletions

View File

@ -39,7 +39,7 @@ APP_AUTHOR := mtheall
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
# options for code generation # options for code generation
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
ARCH := -march=armv6k -mtune=mpcore -mfloat-abi=softfp ARCH := -march=armv6k -mtune=mpcore -mfloat-abi=hard
CFLAGS := -g -Wall -O3 -mword-relocations \ CFLAGS := -g -Wall -O3 -mword-relocations \
-fomit-frame-pointer -ffast-math \ -fomit-frame-pointer -ffast-math \

View File

@ -167,10 +167,9 @@ static const size_t num_ftp_commands = sizeof(ftp_commands)/sizeof(ftp_commands[
static inline int Errno(void) static inline int Errno(void)
{ {
int err = SOC_GetErrno(); if(errno < 0)
if(err < 0) return -errno;
return -err; return errno;
return err;
} }
/*! compare ftp command descriptors /*! compare ftp command descriptors