fix macos build( maybe? #296 )

This commit is contained in:
nillerusr 2023-10-06 03:33:45 +03:00
parent e7addfc9ad
commit 2636f1a66d

View File

@ -345,10 +345,6 @@ unsigned int CPhonemeTag::ComputeDataCheckSum()
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// Purpose: Simple language to string and string to language lookup dictionary // Purpose: Simple language to string and string to language lookup dictionary
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
#if defined(__i386__) || defined(__x86_64__)
#pragma pack(1)
#endif
struct CCLanguage struct CCLanguage
{ {
int type; int type;
@ -371,9 +367,6 @@ static CCLanguage g_CCLanguageLookup[] =
{ CC_THAI, "thai", 0 , 150, 250 }, { CC_THAI, "thai", 0 , 150, 250 },
{ CC_PORTUGUESE,"portuguese", 0 , 0, 150 }, { CC_PORTUGUESE,"portuguese", 0 , 0, 150 },
}; };
#if defined(__i386__) || defined(__x86_64__)
#pragma pack()
#endif
void CSentence::ColorForLanguage( int language, unsigned char& r, unsigned char& g, unsigned char& b ) void CSentence::ColorForLanguage( int language, unsigned char& r, unsigned char& g, unsigned char& b )
{ {
@ -1767,4 +1760,4 @@ void CSentence::CreateEventWordDistribution( char const *pszText, float flSenten
} }
#endif // !_STATIC_LINKED || _SHARED_LIB #endif // !_STATIC_LINKED || _SHARED_LIB