--- uae/src/include/sysdeps.h 2018/04/24 17:12:55 1.1.1.10 +++ uae/src/include/sysdeps.h 2018/04/24 17:18:53 1.1.1.13 @@ -114,7 +114,7 @@ struct utimbuf /* sam: some definitions so that SAS/C can compile UAE */ #if defined(__SASC) && defined(AMIGA) -#define REGPARAM2 +#define REGPARAM2 #define REGPARAM #define S_IRUSR S_IREAD #define S_IWUSR S_IWRITE @@ -277,7 +277,7 @@ extern void *xcalloc(size_t, size_t); #endif -#endif /* _WIN32 */ +#endif /* _WIN32 */ #ifdef DONT_HAVE_POSIX @@ -378,9 +378,15 @@ extern void write_log (const char *, ... extern void write_log (const char *, ...); #endif +#if 0 extern void console_out (const char *, ...); extern void console_flush (void); extern int console_get (char *, int); +#else +#define console_out printf +#define console_flush() fflush (stdout) +#define console_get(BUF, COUNT) fgets (BUF, COUNT, stdin) +#endif #ifndef O_BINARY #define O_BINARY 0 @@ -390,9 +396,11 @@ extern int console_get (char *, int); #if __GNUC__ - 1 > 1 && __GNUC_MINOR__ - 1 >= 0 #define STATIC_INLINE static __inline__ __attribute__ ((always_inline)) #define NOINLINE __attribute__ ((noinline)) +#define NORETURN __attribute__ ((noreturn)) #else #define STATIC_INLINE static __inline__ #define NOINLINE +#define NORETURN #endif #endif