aboutsummaryrefslogtreecommitdiff
path: root/shared/pb
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-06-03 11:25:23 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-06-03 11:25:23 +0200
commit3a8fcd3a27cc39a360e367a0492878e2e9aa8f28 (patch)
tree28e28be08d5e63a3473bd65f8635f9605e1c7af6 /shared/pb
parent5a096a31cab585c1a0d938d64ebcc651900fbf42 (diff)
demo working kinda
Diffstat (limited to 'shared/pb')
-rw-r--r--shared/pb/types.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/shared/pb/types.h b/shared/pb/types.h
index f2e2078..d4a65ed 100644
--- a/shared/pb/types.h
+++ b/shared/pb/types.h
@@ -6,9 +6,13 @@ extern "C" {
#endif
#ifdef __GNUC__
+#ifndef __packed
#define __packed __attribute__((packed))
+#endif
+#ifndef __weak
#define __weak __attribute__((weak))
#endif
+#endif
#ifndef __packed
#error Could not determine packed attribute for current compiler
#define __packed