aboutsummaryrefslogtreecommitdiff
path: root/shared/pb
diff options
context:
space:
mode:
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