summaryrefslogtreecommitdiff
path: root/pbstruct.c
diff options
context:
space:
mode:
Diffstat (limited to 'pbstruct.c')
-rw-r--r--pbstruct.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/pbstruct.c b/pbstruct.c
new file mode 100644
index 0000000..97e0a9f
--- /dev/null
+++ b/pbstruct.c
@@ -0,0 +1,11 @@
+/*
+ * pbstream - a stream-oriented implementation of protocol buffers.
+ *
+ * Copyright (c) 2009 Joshua Haberman. See LICENSE for details.
+ */
+
+#include <stddef.h>
+#include "pbstruct.h"
+
+#define alignof(t) offsetof(struct { char c; t x; }, x)
+
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback