@R patches to work with amigaos-*-m68k

This commit is contained in:
bebbo 2017-03-26 20:50:20 +02:00
parent 3be02d4321
commit 1a1c3869dd
2 changed files with 6 additions and 1 deletions

3
libobjc/configure vendored
View File

@ -7637,7 +7637,8 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
# FIXME: we need at least 68020 code to build shared libraries, but # FIXME: we need at least 68020 code to build shared libraries, but
# adding the `-m68020' flag to GCC prevents building anything better, # adding the `-m68020' flag to GCC prevents building anything better,
# like `-m68040'. # like `-m68040'.
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' #lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
enable_shared=no
;; ;;
esac esac
;; ;;

View File

@ -52,7 +52,11 @@ extern "C" {
Important: this could change and we could switch to 'typedef bool Important: this could change and we could switch to 'typedef bool
BOOL' in the future. Do not depend on the type of BOOL. */ BOOL' in the future. Do not depend on the type of BOOL. */
#undef BOOL #undef BOOL
#ifdef AMIGA
typedef short BOOL;
#else
typedef unsigned char BOOL; typedef unsigned char BOOL;
#endif
#define YES (BOOL)1 #define YES (BOOL)1
#define NO (BOOL)0 #define NO (BOOL)0