From 721432a9110d6868b5fa345d345b398829eaf87b Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Sat, 27 Apr 2013 21:30:47 +1000 Subject: [PATCH] fix CBlockStream/icarus on amd64 --- code/icarus/BlockStream.cpp | 4 ++-- code/icarus/BlockStream.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/code/icarus/BlockStream.cpp b/code/icarus/BlockStream.cpp index 095a5ca..f587dec 100644 --- a/code/icarus/BlockStream.cpp +++ b/code/icarus/BlockStream.cpp @@ -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(); diff --git a/code/icarus/BlockStream.h b/code/icarus/BlockStream.h index 0d621c2..56faf77 100644 --- a/code/icarus/BlockStream.h +++ b/code/icarus/BlockStream.h @@ -7,6 +7,8 @@ #include #include +#define IBI_HEADER_ID "IBI" + typedef float vec3_t[3];