//
// Written by Curtis Olson, started January 2000.
//
-// Copyright (C) 2000 Curtis L. Olson - curt@flightgear.org
+// Copyright (C) 2000 Curtis L. Olson - http://www.flightgear.org/~curt
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
double *dptr = (double *)ptr;
if ( sgIsBigEndian() ) {
- sgEndianSwap( (uint64 *)&(dptr[0]) );
- sgEndianSwap( (uint64 *)&(dptr[1]) );
- sgEndianSwap( (uint64 *)&(dptr[2]) );
+ sgEndianSwap( (uint64_t *)&(dptr[0]) );
+ sgEndianSwap( (uint64_t *)&(dptr[1]) );
+ sgEndianSwap( (uint64_t *)&(dptr[2]) );
}
gbs_center = Point3D( dptr[0], dptr[1], dptr[2] );
// cout << "Center = " << gbs_center << endl;
// write header magic
sgWriteUInt( fp, SG_FILE_MAGIC_NUMBER );
time_t calendar_time = time(NULL);
- sgWriteLong( fp, (long int)calendar_time );
+ sgWriteLong( fp, (int32_t)calendar_time );
// calculate and write number of top level objects
string material;