summaryrefslogtreecommitdiff
path: root/include/generic.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/generic.h')
-rw-r--r--include/generic.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/generic.h b/include/generic.h
index fe48cc5..39030ab 100644
--- a/include/generic.h
+++ b/include/generic.h
@@ -79,6 +79,14 @@ typedef unsigned _int64 uint64;
#endif
#endif // !PACKED
+#ifndef PPACKED
+#if defined __linux__ || defined sun || defined __solaris__ || defined __CYGWIN32__
+#define PPACKED
+#else // PACKED
+#define PPACKED __declspec(align(1))
+#endif
+#endif // !PACKED
+
extern char verbosity;
char ** split(char * s, char t);