updated the structure packing pragmas

This commit is contained in:
hyunghwan.chung 2022-06-10 02:43:01 +00:00
parent 8889a6580d
commit 5b2953c9c7
2 changed files with 8 additions and 2 deletions

View File

@ -24,7 +24,10 @@
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#if defined(__GNUC__)
#if defined(__GNUC__) && (__GNUC__ >= 4)
# pragma pack(push,1)
#elif defined(__GNUC__)
# pragma pack(1)
#elif defined(__HP_aCC) || defined(__HP_cc)
# pragma PACK 1

View File

@ -24,7 +24,10 @@
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#if defined(__GNUC__)
#if defined(__GNUC__) && (__GNUC__ >= 4)
# pragma pack(pop)
#elif defined(__GNUC__)
# pragma pack()
#elif defined(__HP_aCC) || defined(__HP_cc)
# pragma PACK