mirror of
https://github.com/aaru-dps/fstester.git
synced 2025-12-16 19:24:39 +00:00
Fix pragma for packing in old Watcom C++ compilers.
This commit is contained in:
@@ -45,8 +45,12 @@ Copyright (C) 2011-2021 Natalia Portillo
|
||||
#endif
|
||||
|
||||
#if defined(__WATCOMC__)
|
||||
#if __WATCOMC__ >= 1100
|
||||
#pragma pack(__push, 1)
|
||||
#else
|
||||
#pragma pack(1)
|
||||
#endif
|
||||
#else
|
||||
#pragma pack(push, 1)
|
||||
#endif
|
||||
|
||||
@@ -68,8 +72,12 @@ typedef struct diskfree_ex_t
|
||||
unsigned int _dos_getdiskfree_ex(unsigned int drive, struct diskfree_ex_t* diskspace);
|
||||
|
||||
#if defined(__WATCOMC__)
|
||||
#if __WATCOMC__ >= 1100
|
||||
#pragma pack(__pop)
|
||||
#else
|
||||
#pragma pack()
|
||||
#endif
|
||||
#else
|
||||
#pragma pack(pop)
|
||||
#endif
|
||||
|
||||
@@ -106,4 +114,4 @@ unsigned _dos_creatnew(const char* path, int attrib, int* handlep);
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user