Changeset 426


Ignore:
Timestamp:
Aug 5, 2005 11:42:06 AM (14 years ago)
Author:
andreasw
Message:

Adaptions to allow compilation with AIX compilers

(in particular, va_copy not available)

Location:
branches/dev
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/dev/Common/IpJournalist.cpp

    r418 r426  
    154154      if (journals_[i]->IsAccepted(category, level)) {
    155155        // print the message
     156#ifndef NO_VA_COPY
    156157        va_list apcopy;
    157158        va_copy(apcopy, ap);
    158159        journals_[i]->Printf(pformat, apcopy);
    159160        va_end(apcopy);
     161#else
     162        journals_[i]->Printf(pformat, ap);
     163#endif
    160164      }
    161165    }
     
    179183
    180184        // print the message
     185#ifndef NO_VA_COPY
    181186        va_list apcopy;
    182187        va_copy(apcopy, ap);
    183188        journals_[i]->Printf(pformat, apcopy);
    184189        va_end(apcopy);
     190#else
     191        journals_[i]->Printf(pformat, ap);
     192#endif
    185193      }
    186194    }
  • branches/dev/LinAlgImpl/Serial/IpDenseVector.cpp

    r423 r426  
    161161    DBG_ASSERT(initialized_);
    162162    if (homogeneous_) {
    163       return sqrt(Dim()) * fabs(scalar_);
     163      return sqrt((double)Dim()) * fabs(scalar_);
    164164    }
    165165    else {
Note: See TracChangeset for help on using the changeset viewer.