summaryrefslogtreecommitdiff
path: root/cesar/common/std.h
diff options
context:
space:
mode:
Diffstat (limited to 'cesar/common/std.h')
-rw-r--r--cesar/common/std.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/cesar/common/std.h b/cesar/common/std.h
new file mode 100644
index 0000000000..d4387ead82
--- /dev/null
+++ b/cesar/common/std.h
@@ -0,0 +1,33 @@
+#ifndef common_std_h
+#define common_std_h
+/* Cesar project {{{
+ *
+ * Copyright (C) 2007 Spidcom
+ *
+ * <<<Licence>>>
+ *
+ * }}} */
+/**
+ * \file common/std.h
+ * \brief Standard header.
+ * \ingroup common
+ *
+ * Standard header to be included on top of each source file.
+ */
+
+#ifdef __cplusplus
+# define BEGIN_DECLS extern "C" {
+# define END_DECLS }
+#else
+# define BEGIN_DECLS
+# define END_DECLS
+#endif
+
+#include "lib/types.h"
+#include "lib/defs.h"
+#include "lib/utils.h"
+#include "lib/dbg.h"
+
+#else
+# error "common/std.h should be included only once in non header files."
+#endif /* common_std_h */