зеркало из https://github.com/mozilla/pjs.git
AIX portability fixes. (Waqar Malik <waqar@netscape.com>)
This commit is contained in:
Родитель
16e3e60042
Коммит
bb5e2580dc
|
@ -164,5 +164,8 @@ typedef PRUcs2 PRUnichar;
|
|||
// No sense in making an NS_DYNAMIC_CAST() macro: you can't duplicate
|
||||
// the semantics. So if you want to dynamic_cast, then just use it
|
||||
// "straight", no macro.
|
||||
#if defined(AIX)
|
||||
#define explicit
|
||||
#endif
|
||||
|
||||
#endif /* nscore_h___ */
|
||||
|
|
27
configure.in
27
configure.in
|
@ -136,11 +136,18 @@ dnl now the exceptions
|
|||
dnl ========================================================
|
||||
case "$target" in
|
||||
*-*-aix*)
|
||||
DSO_CFLAGS=
|
||||
if [ test "$GNU_CC" != 1 ]; then
|
||||
DSO_LDOPTS='-brtl -bM:SRE -bnoentry -bexpall'
|
||||
fi
|
||||
;;
|
||||
DLL_SUFFIX="so"
|
||||
MKSHLIB_FORCE_ALL=''
|
||||
MKSHLIB_UNFORCE_ALL=''
|
||||
if [ test "$GNU_CC" != 1 ]; then
|
||||
AIX_DEFINES='-D_THREAD_SAFE -D_REENTRANT -DPIC'
|
||||
AIX_CFLAGS='-brtl -O -qtune=604 -qlanglvl=extended -qflag=w:w'
|
||||
DSO_LDOPTS='-ldl -bM:SRE -brtl -berok -bexpall -bnoentry -L$(DIST)/lib'
|
||||
DSO_CFLAGS='$(AIX_DEFINES) $(AIX_CFLAGS)'
|
||||
fi
|
||||
dnl MKSHLIB='$(LD) $(DSO_LDOPTS)'
|
||||
MKSHLIB='/usr/ibmcxx/bin/makeC++SharedLib_r -p1 -brtl -berok --'
|
||||
;;
|
||||
|
||||
*-*-solaris*)
|
||||
AC_DEFINE(BROKEN_QSORT)
|
||||
|
@ -255,7 +262,15 @@ AC_HEADER_SYS_WAIT
|
|||
AC_HEADER_TIME
|
||||
AC_CHECK_HEADERS(fcntl.h limits.h malloc.h paths.h strings.h unistd.h)
|
||||
AC_CHECK_HEADERS(sys/bittypes.h sys/file.h sys/ioctl.h sys/time.h)
|
||||
AC_CHECK_HEADERS(getopt.h ioctl.h sys/cdefs.h filio.h systeminfo.h)
|
||||
AC_CHECK_HEADERS(getopt.h ioctl.h filio.h systeminfo.h)
|
||||
|
||||
case $target in
|
||||
*-aix4.3*)
|
||||
;;
|
||||
*)
|
||||
AC_CHECK_HEADERS(sys/cdefs.h)
|
||||
;;
|
||||
esac
|
||||
|
||||
dnl Checks for libraries.
|
||||
dnl ========================================================
|
||||
|
|
|
@ -141,6 +141,9 @@ static void do32(void)
|
|||
if (u.c[0] == 0x01) {
|
||||
printf("#undef IS_LITTLE_ENDIAN\n");
|
||||
printf("#define IS_BIG_ENDIAN 1\n\n");
|
||||
#if defined(AIX)
|
||||
printf("#define JS_HAVE_LONG_LONG 1\n\n");
|
||||
#endif
|
||||
} else {
|
||||
printf("#define IS_LITTLE_ENDIAN 1\n");
|
||||
printf("#undef IS_BIG_ENDIAN\n\n");
|
||||
|
|
|
@ -530,7 +530,11 @@ typedef void (*png_free_ptr) PNGARG((png_structp, png_structp));
|
|||
|
||||
struct png_struct_def
|
||||
{
|
||||
#if defined(AIX)
|
||||
jmp_buf __jmpbuf; /* used in png_error */
|
||||
#else
|
||||
jmp_buf jmpbuf; /* used in png_error */
|
||||
#endif
|
||||
|
||||
png_error_ptr error_fn; /* function for printing errors and aborting */
|
||||
png_error_ptr warning_fn; /* function for printing warnings */
|
||||
|
|
Загрузка…
Ссылка в новой задаче