fix CBlockStream/icarus on amd64

This commit is contained in:
Jonathan Gray 2013-04-27 21:30:47 +10:00
parent f50e96fe20
commit 721432a911
2 changed files with 4 additions and 2 deletions

View File

@ -425,7 +425,7 @@ int CBlockStream::Create( char *filename )
return false;
}
fwrite( s_IBI_HEADER_ID, 1, sizeof(s_IBI_HEADER_ID), m_fileHandle );
fwrite( s_IBI_HEADER_ID, 1, sizeof(IBI_HEADER_ID), m_fileHandle );
fwrite( &s_IBI_VERSION, 1, sizeof(s_IBI_VERSION), m_fileHandle );
return true;
@ -551,7 +551,7 @@ Open
int CBlockStream::Open( char *buffer, long size )
{
char id_header[sizeof(s_IBI_HEADER_ID)];
char id_header[sizeof(IBI_HEADER_ID)];
float version;
Init();

View File

@ -7,6 +7,8 @@
#include <string.h>
#include <stdio.h>
#define IBI_HEADER_ID "IBI"
typedef float vec3_t[3];