aboutsummaryrefslogtreecommitdiff
path: root/include/cxx_semantics.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/cxx_semantics.h')
-rw-r--r--include/cxx_semantics.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/cxx_semantics.h b/include/cxx_semantics.h
new file mode 100644
index 0000000..f358e8f
--- /dev/null
+++ b/include/cxx_semantics.h
@@ -0,0 +1,23 @@
+#ifndef CXX_SEMANTICS_H
+#define CXX_SEMANTICS_H
+
+#ifndef _MSC_VER
+#define __packed __attribute__((__packed__))
+#else
+#define __packed
+#endif
+
+#ifdef _MSC_VER
+#define strdup _strdup
+#endif
+
+/*
+ * There's no need to include Boost for a simple subset this project needs.
+ */
+namespace semantics {
+class non_constructible {
+ non_constructible() {}
+};
+}
+
+#endif