mirror of
https://github.com/pret/pokediamond.git
synced 2026-03-21 17:54:29 -05:00
rename arith.h to stdlib.h
because apparently that affects codegen
This commit is contained in:
parent
5d0c0789da
commit
c0b3eb07bd
|
|
@ -3,8 +3,8 @@
|
|||
|
||||
//include all msl files here
|
||||
|
||||
#include "string.h"
|
||||
#include "arith.h"
|
||||
#include "rand.h"
|
||||
#include "stdlib.h"
|
||||
#include "string.h"
|
||||
|
||||
#endif //MSL_H
|
||||
|
|
|
|||
|
|
@ -1,6 +0,0 @@
|
|||
#ifndef POKEDIAMOND_MSL_C_ARITH_H
|
||||
#define POKEDIAMOND_MSL_C_ARITH_H
|
||||
|
||||
int abs(int val);
|
||||
|
||||
#endif //POKEDIAMOND_MSL_C_ARITH_H
|
||||
8
arm9/lib/MSL_C/include/stdlib.h
Normal file
8
arm9/lib/MSL_C/include/stdlib.h
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#ifndef POKEDIAMOND_MSL_C_STDLIB_H
|
||||
#define POKEDIAMOND_MSL_C_STDLIB_H
|
||||
|
||||
// this file MUST be called stdlib.h, as the filename affects matching for some reason
|
||||
|
||||
int abs(int val);
|
||||
|
||||
#endif // POKEDIAMOND_MSL_C_STDLIB_H
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
#include "arith.h"
|
||||
#include "code32.h"
|
||||
#include "stdlib.h"
|
||||
|
||||
int abs(int val) {
|
||||
return val < 0 ? -val : val;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user