Modified syscalls.* to fit CPP compilation

This commit is contained in:
aethaniel 2011-06-01 01:53:32 +02:00
parent 49b03a0ea7
commit 65ce0cd0a2
2 changed files with 11 additions and 5 deletions

View File

@ -37,8 +37,6 @@
/*----------------------------------------------------------------------------
* Headers
*----------------------------------------------------------------------------*/
#include <stdio.h>
#include <stdarg.h>
#include <sys/types.h>
@ -47,10 +45,13 @@
/*----------------------------------------------------------------------------
* Exported functions
*----------------------------------------------------------------------------*/
#ifdef __cplusplus
extern "C" {
#endif
extern caddr_t _sbrk ( int incr ) ;
extern caddr_t _sbrk( int incr ) ;
extern int link( char *old, char *new ) ;
extern int link( char *cOld, char *cNew ) ;
extern int _close( int file ) ;
@ -63,3 +64,8 @@ extern int _lseek( int file, int ptr, int dir ) ;
extern int _read(int file, char *ptr, int len) ;
extern int _write( int file, char *ptr, int len ) ;
#ifdef __cplusplus
}
#endif

View File

@ -77,7 +77,7 @@ extern caddr_t _sbrk ( int incr )
return (caddr_t) prev_heap ;
}
extern int link( char *old, char *new )
extern int link( char *cOld, char *cNew )
{
return -1 ;
}