1万
7万
11万
管理员
使用道具 举报
42
1019
1150
至尊会员
0
8
新手上路
25
300
380
高级会员
ghslfgkkl88 发表于 2019-9-8 12:39 用__packed好像会有编译器兼容问题,我现在一般都用下面这种方式: #pragma pack (1) typedef struct
uranusgin 发表于 2019-9-8 12:41 typedef struct __attribute__((packed)) 这样应该可以。
爱恋之燕 发表于 2019-9-8 13:24 看这个 https://mp.weixin.qq.com/s?__biz=MzI4MDI4MDE5Ng==&mid=2247485608&idx=1&sn=1ed86f1ea652f63dfd ...
3
欢乐马 发表于 2019-9-9 09:56 接上面一个,版主可以合并下。 #include 就可以使用了。
eric2013 发表于 2019-9-9 11:17 非常感谢,还是你这个方便
354
2164
3231
版主
欢乐马 发表于 2019-9-9 12:27 一直看大家贡献,有机会贡献点出来,挺好。
caicaptain2 发表于 2023-3-29 12:17 没看明白。。。 这个#include 放在哪里? 原有的#define __packed __attribute__((__packed__)) ...
本版积分规则 发表回复 回帖后跳转到最后一页
|小黑屋|Archiver|手机版|硬汉嵌入式论坛
GMT+8, 2025-5-15 02:42 , Processed in 0.296370 second(s), 27 queries .
Powered by Discuz! X3.4 Licensed
Copyright © 2001-2023, Tencent Cloud.