mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-18 07:52:14 +01:00
Modified syscalls.* to fit CPP compilation
This commit is contained in:
parent
49b03a0ea7
commit
65ce0cd0a2
@ -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
|
||||
|
||||
|
@ -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 ;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user