Add #pragma pack to FString

This commit is contained in:
Markus Gans 2018-10-14 20:15:52 +02:00
parent cfc1c4ef25
commit 6b753c54ed
2 changed files with 9 additions and 1 deletions

View File

@ -38,6 +38,10 @@ namespace fc
//----------------------------------------------------------------------
// class emptyFString
//----------------------------------------------------------------------
#pragma pack(push)
#pragma pack(1)
class emptyFString
{
public:
@ -58,6 +62,7 @@ private:
// Data Member
static const FString* empty_string;
};
#pragma pack(pop)
// emptyFString inline functions
//----------------------------------------------------------------------

View File

@ -71,6 +71,9 @@ typedef std::vector<FString> FStringList;
// class FString
//----------------------------------------------------------------------
#pragma pack(push)
#pragma pack(1)
class FString
{
public:
@ -274,7 +277,7 @@ class FString
std::size_t bufsize;
mutable char* c_string;
};
#pragma pack(pop)
// FString inline functions
//----------------------------------------------------------------------