gba-x3dtest

diff src/logger.c @ 5:850be43b3135

sdl version
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 16 Jun 2014 22:01:45 +0300
parents b7130fe3f073
children 62390f9cc93e
line diff
     1.1 --- a/src/logger.c	Sat Jun 14 03:04:56 2014 +0300
     1.2 +++ b/src/logger.c	Mon Jun 16 22:01:45 2014 +0300
     1.3 @@ -71,6 +71,7 @@
     1.4  	while(*str) putchr(*str++);
     1.5  }
     1.6  
     1.7 +#ifdef __ARM__
     1.8  static void agbprint(const char *str)
     1.9  {
    1.10  	asm volatile (
    1.11 @@ -80,3 +81,11 @@
    1.12  		: "r" (str)
    1.13  		: "r0");
    1.14  }
    1.15 +#else
    1.16 +/* fake version */
    1.17 +static void agbprint(const char *str)
    1.18 +{
    1.19 +	fputs(str, stdout);
    1.20 +	fflush(stdout);
    1.21 +}
    1.22 +#endif