--- /dev/null
+/************************************************************************/\r
+/* File Name : common.h */\r
+/* Creator : ax.minaduki@gmail.com */\r
+/* Create Time : Nov 27th, 2008 */\r
+/* Module : Common library */\r
+/* Descript : Common definations */\r
+/************************************************************************/\r
+\r
+#ifndef __SD_COMMON_COMMON_H__\r
+#define __SD_COMMON_COMMON_H__\r
+\r
+/************************************************************************/\r
+\r
+/* #include <const.h> -- removed by Tony Lewis */\r
+\r
+#ifdef __cplusplus\r
+\r
+#include <ctime>\r
+#include <cstdio>\r
+#include <cctype>\r
+#include <cstring>\r
+#include <cstdlib>\r
+#include <cassert>\r
+\r
+#else\r
+\r
+#include <time.h>\r
+#include <stdio.h>\r
+#include <ctype.h>\r
+#include <string.h>\r
+#include <stdlib.h>\r
+#include <assert.h>\r
+\r
+#endif\r
+\r
+/************************************************************************/\r
+\r
+#ifdef __cplusplus\r
+#define CAPI extern "C"\r
+#else\r
+#define CAPI\r
+#endif\r
+\r
+/************************************************************************/\r
+\r
+#define DCount(arr) (sizeof(arr) / sizeof((arr)[0]))\r
+#define DVarClr(var) DMemClr(&(var), sizeof(var))\r
+#define DSwap(x, y) do { x ^= y; y ^= x; x ^=y; } while (0)\r
+#define DBetween(var, b, e) ((var) >= (b) && (var) < (e))\r
+#define DBoolean(b) (!!(b))\r
+\r
+/************************************************************************/\r
+\r
+#ifdef WIN32\r
+#include <win32.h>\r
+#else\r
+#include "posix.h" /* changed from <posix.h> by Tony Lewis */\r
+#endif\r
+\r
+typedef VOID *VPTR;\r
+typedef CONST VOID *VCPTR;\r
+\r
+typedef CHAR *STRPTR;\r
+typedef CONST CHAR *STRCPTR;\r
+\r
+typedef BYTE *BUFPTR;\r
+typedef CONST BYTE *BUFCPTR;\r
+\r
+/************************************************************************/\r
+\r
+CAPI extern STRCPTR DGetCwd(VOID);\r
+\r
+/************************************************************************/\r
+\r
+#endif /* __SD_COMMON_COMMON_H__ */\r