SMB: Fix big endian problems. Make it OS/400 aware.

This commit is contained in:
Patrick Monnerat
2014-12-05 18:37:35 +01:00
parent 9b0b9f209e
commit e17220ffcb
2 changed files with 15 additions and 11 deletions

View File

@@ -49,7 +49,7 @@ struct smb_conn {
*/
#ifdef BUILDING_CURL_SMB_C
#ifdef _MSC_VER
#if defined(_MSC_VER) || defined(__ILEC400__)
# define PACK
# pragma pack(push)
# pragma pack(1)
@@ -250,7 +250,7 @@ struct smb_tree_disconnect {
unsigned short byte_count;
} PACK;
#ifdef _MSC_VER
#if defined(_MSC_VER) || defined(__ILEC400__)
# pragma pack(pop)
#endif