sim: stdlib.h for abs()

Make sure the files using abs() include stdlib.h for its prototype.
These files were relying on it being included implicitly by others
which isn't guaranteed, and newer toolchains produce warnings.
This commit is contained in:
Mike Frysinger 2021-01-04 20:11:48 -05:00
parent 9353bb9ed6
commit 9416af6e7d
6 changed files with 16 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2021-01-04 Mike Frysinger <vapier@gentoo.org>
* iwmmxt.c: Include stdlib.h.
2021-01-04 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate.

View File

@ -15,6 +15,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include <stdlib.h>
#include <string.h>
#include "armdefs.h"

View File

@ -1,3 +1,7 @@
2021-01-04 Mike Frysinger <vapier@gentoo.org>
* dv-bfin_dma.c: Include stdlib.h.
2021-01-02 Mike Frysinger <vapier@gentoo.org>
* interp.c: Change ALIGN to align_up.

View File

@ -20,6 +20,8 @@
#include "config.h"
#include <stdlib.h>
#include "sim-main.h"
#include "devices.h"
#include "hw-device.h"

View File

@ -1,3 +1,7 @@
2021-01-04 Mike Frysinger <vapier@gentoo.org>
* mdma-skel.h: Include stdlib.h.
2015-10-11 Mike Frysinger <vapier@gentoo.org>
PR sim/18407

View File

@ -1,3 +1,4 @@
#include <stdlib.h>
#include <string.h>
void _mdma_memcpy (bu32 dst, bu32 src, bu32 size, bs16 mod)