rename arith.h to stdlib.h

because apparently that affects codegen
This commit is contained in:
red031000 2025-02-19 01:31:56 +00:00
parent 5d0c0789da
commit c0b3eb07bd
No known key found for this signature in database
GPG Key ID: D27E50C050AE0CE1
4 changed files with 11 additions and 9 deletions

View File

@ -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

View File

@ -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

View 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

View File

@ -1,5 +1,5 @@
#include "arith.h"
#include "code32.h"
#include "stdlib.h"
int abs(int val) {
return val < 0 ? -val : val;