Skip to content

Commit

Permalink
sys/newlib_syscalls_default: Remove MIPS-specific ifdef.
Browse files Browse the repository at this point in the history
Now that MIPS is gone, the ifdef is no longer necessary.

If it eve gets added back in we should think of a more elegant way
to integrate it with the C library.
  • Loading branch information
jcarrano committed Jul 12, 2019
1 parent 630131c commit 0cf2283
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions sys/newlib_syscalls_default/syscalls.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ extern char _sheap; /* start of the heap */
extern char _eheap; /* end of the heap */
char *heap_top = &_sheap + 4;

/* MIPS newlib crt implements _init,_fini and _exit and manages the heap */
#ifndef __mips__
/**
* @brief Initialize NewLib, called by __libc_init_array() from the startup script
*/
Expand Down Expand Up @@ -122,8 +120,6 @@ void *_sbrk_r(struct _reent *r, ptrdiff_t incr)
return res;
}

#endif /*__mips__*/

/**
* @brief Get the process-ID of the current thread
*
Expand Down

0 comments on commit 0cf2283

Please sign in to comment.