Irix tweaks.
This commit is contained in:
parent
e3b0a70eb9
commit
dfbcb1566b
12
configure.in
12
configure.in
@ -34,6 +34,18 @@ AC_PROG_RANLIB
|
||||
AC_PROG_INSTALL
|
||||
AC_PROG_LN_S
|
||||
|
||||
OS=`uname -s`
|
||||
if test $OS = "IRIX" -o $OS = "IRIX64"; then
|
||||
if text $CC = "CC"; then
|
||||
AR="CC -ar"
|
||||
else
|
||||
AR="ar"
|
||||
fi
|
||||
else
|
||||
AR="ar"
|
||||
fi
|
||||
AC_SUBST(AR)
|
||||
|
||||
if echo $includedir | egrep "simgear$" > /dev/null; then
|
||||
echo "includedir is" $includedir "libdir is" $libdir
|
||||
else
|
||||
|
@ -31,6 +31,7 @@ include_HEADERS = \
|
||||
compiler.h constants.h sg_inlines.h sg_traits.hxx sg_zlib.h version.h
|
||||
|
||||
SUBDIRS = \
|
||||
$(ZLIB_DIRS) \
|
||||
bucket \
|
||||
debug \
|
||||
ephemeris \
|
||||
@ -46,5 +47,5 @@ SUBDIRS = \
|
||||
sky \
|
||||
$(SGTHREAD_DIR) \
|
||||
timing \
|
||||
xgl \
|
||||
$(ZLIB_DIRS)
|
||||
xgl
|
||||
|
||||
|
@ -7,6 +7,7 @@
|
||||
|
||||
#include <stdlib.h> // atof() atoi()
|
||||
|
||||
#include <simgear/sg_inlines.h>
|
||||
#include <simgear/debug/logstream.hxx>
|
||||
#include <simgear/xml/easyxml.hxx>
|
||||
|
||||
@ -126,7 +127,7 @@ PropsVisitor::startElement (const char * name, const XMLAttributes &atts)
|
||||
int index = 0;
|
||||
if (att_n != 0) {
|
||||
index = atoi(att_n);
|
||||
st.counters[name] = max(st.counters[name], index+1);
|
||||
st.counters[name] = SG_MAX2(st.counters[name], index+1);
|
||||
} else {
|
||||
index = st.counters[name];
|
||||
st.counters[name]++;
|
||||
|
@ -23,9 +23,16 @@
|
||||
#ifndef SGTHREAD_HXX_INCLUDED
|
||||
#define SGTHREAD_HXX_INCLUDED 1
|
||||
|
||||
#include <simgear/compiler.h>
|
||||
|
||||
#include <pthread.h>
|
||||
#include <cassert>
|
||||
#include <cerrno>
|
||||
#if defined ( SG_HAVE_STD_INCLUDES )
|
||||
# include <cassert>
|
||||
# include <cerrno>
|
||||
#else
|
||||
# include <assert.h>
|
||||
# include <sys/errno.h>
|
||||
#endif
|
||||
|
||||
class SGThread;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user