summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorXuefer <xuefer@gmail.com>2014-11-08 19:18:37 +0000
committerXuefer <xuefer@gmail.com>2014-11-08 19:18:37 +0000
commiteefebd8773e8f29f5d00f6c03b0b10eb5661f34c (patch)
tree0e82daf35c03e5c58bc206645e79ed72fda07999 /util
parenta8677af6b70df5a95d4a55c7085c2fc9415f60c0 (diff)
downloadxcache-eefebd8773e8f29f5d00f6c03b0b10eb5661f34c.tar.gz
xcache-eefebd8773e8f29f5d00f6c03b0b10eb5661f34c.zip
split head.m4 into multilpe helper file
git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1554 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
Diffstat (limited to 'util')
-rw-r--r--util/xc_util.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/util/xc_util.h b/util/xc_util.h
new file mode 100644
index 0000000..db0560b
--- /dev/null
+++ b/util/xc_util.h
@@ -0,0 +1,11 @@
+#ifndef XC_UTIL_H_709AE2523EDACB72B54D9CB42DDB0FEE
+#define XC_UTIL_H_709AE2523EDACB72B54D9CB42DDB0FEE
+
+#if _MSC_VER > 1000
+#pragma once
+#endif /* _MSC_VER > 1000 */
+
+#define ptradd(type, ptr, ptrdiff) ((type) (((char *) (ptr)) + (ptrdiff)))
+#define ptrsub(ptr1, ptr2) (((char *) (ptr1)) - ((char *) (ptr2)))
+
+#endif /* XC_UTIL_H_709AE2523EDACB72B54D9CB42DDB0FEE */