fixed compile errors for osx

This commit is contained in:
Magnus Auvinen 2010-06-01 21:55:08 +02:00
parent 48c8a78025
commit f8d69b2fe6
2 changed files with 3 additions and 3 deletions

View file

@ -52,7 +52,7 @@ struct CFontSizeData
int m_FontSize;
FT_Face *m_pFace;
unsigned m_aTextures[2];
GLuint m_aTextures[2];
int m_TextureWidth;
int m_TextureHeight;

View file

@ -154,7 +154,7 @@ bool CDataFileReader::Open(class IStorage *pStorage, const char *pFilename)
}
#if defined(CONF_ARCH_ENDIAN_BIG)
swap_endian(m_pDataFile->m_pData, sizeof(int), Header.Swaplen / sizeof(int));
swap_endian(m_pDataFile->m_pData, sizeof(int), Header.m_Swaplen / sizeof(int));
#endif
//if(DEBUG)
@ -476,7 +476,7 @@ int CDataFileWriter::AddDataSwapped(int Size, void *pData)
int Index;
mem_copy(pSwapped, pData, Size);
swap_endian(&pSwapped, sizeof(int), Size/sizeof(int));
Index = AddData(Size, Swapped);
Index = AddData(Size, pSwapped);
mem_free(pSwapped);
return Index;
#else