Fix pragma for packing in old Watcom C++ compilers.

This commit is contained in:
2021-04-11 00:32:49 +01:00
parent 559fc1c774
commit a4f2751ce6

View File

@@ -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