From 49e9ff6bc32c300dee2dee9a83d92957db2f3808 Mon Sep 17 00:00:00 2001 From: tangchao0503 <735056338@qq.com> Date: Tue, 6 Jun 2023 13:42:58 +0800 Subject: [PATCH] =?UTF-8?q?1.=20#pragma=20pack(1)=E4=B8=8D=E5=BA=94?= =?UTF-8?q?=E8=AF=A5=E5=8C=85=E5=90=AB=E5=A4=B4=E6=96=87=E4=BB=B6=EF=BC=8C?= =?UTF-8?q?=E5=BA=94=E8=AF=A5=E4=BB=A5#pragma=20pack()=E7=BB=93=E6=9D=9F?= =?UTF-8?q?=EF=BC=9B=202.=20=E5=90=A6=E5=88=99=E4=BC=9A=E5=87=BA=E7=8E=B0?= =?UTF-8?q?=E9=9D=9E=E5=B8=B8=E5=A5=87=E6=80=AA=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=EF=BC=8C=E8=BF=99=E9=87=8C=E7=9A=84qstring=E4=BC=9A=E5=87=BA?= =?UTF-8?q?=E7=8E=B0=E5=A5=87=E6=80=AA=E7=9A=84bug=EF=BC=8C=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E7=A8=8B=E5=BA=8F=E6=AE=B5=E9=94=99=E8=AF=AF=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- othersoft/calibration_console/Header_Files/ZZ_Types.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/othersoft/calibration_console/Header_Files/ZZ_Types.h b/othersoft/calibration_console/Header_Files/ZZ_Types.h index a9e6177..22440e4 100644 --- a/othersoft/calibration_console/Header_Files/ZZ_Types.h +++ b/othersoft/calibration_console/Header_Files/ZZ_Types.h @@ -2,7 +2,6 @@ //类型说明文件 ////////////////////////////////////////////////////////////////////////// #pragma once -#pragma pack(1)//结构体按照1字节对齐存储 #include #include @@ -11,6 +10,8 @@ #define MAX_LINEARSHUTTER_POSITION 12 #define ZZ_Enum2String(x) #x +#pragma pack(1)//结构体按照1字节对齐存储 + namespace ZZ_MISCDEF { typedef unsigned char ZZ_U8;