Skip to content

Commit

Permalink
Fix #274: MAke the parameters unsigned int for sdcc compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
suborb committed Jul 4, 2017
1 parent 382319c commit 1107a46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/stdlib.h
Expand Up @@ -204,8 +204,8 @@ extern uint __LIB__ isqrt(uint n) __z88dk_fastcall;
// used to inline code if the parameters resolve to constants.

extern unsigned int __LIB__ inp(unsigned int port) __z88dk_fastcall;
extern void __LIB__ outp(unsigned int port, unsigned char byte) __smallc;
extern void __LIB__ outp_callee(unsigned int port, unsigned char byte) __smallc __z88dk_callee;
extern void __LIB__ outp(unsigned int port, unsigned int byte) __smallc;
extern void __LIB__ outp_callee(unsigned int port, unsigned int byte) __smallc __z88dk_callee;

#define outp(a,b) outp_callee(a,b)

Expand Down

0 comments on commit 1107a46

Please sign in to comment.