updated the structure packing pragmas

This commit is contained in:
hyung-hwan 2022-06-10 02:43:57 +00:00
parent e6116fde2b
commit afb9f6ab2f
2 changed files with 8 additions and 2 deletions

View File

@ -22,7 +22,10 @@
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 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) # pragma pack(1)
#elif defined(__HP_aCC) || defined(__HP_cc) #elif defined(__HP_aCC) || defined(__HP_cc)
# pragma PACK 1 # pragma PACK 1

View File

@ -22,7 +22,10 @@
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 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() # pragma pack()
#elif defined(__HP_aCC) || defined(__HP_cc) #elif defined(__HP_aCC) || defined(__HP_cc)
# pragma PACK # pragma PACK