summaryrefslogtreecommitdiffstats
path: root/src/raw1394_private.h
diff options
context:
space:
mode:
authorGravatar aeb 2000-09-10 22:18:49 +0000
committerGravatar aeb 2000-09-10 22:18:49 +0000
commitd93e0e84c97cebac079f70fff8dc89159f3b98dd (patch)
tree7f86d205971f5cbcf2c85511493b3769a143190e /src/raw1394_private.h
parentAdded control files for Debian packages. (diff)
Work around compiler warnings for int/ptr casts.
git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@38 53a565d1-3bb7-0310-b661-cf11e63c67ab
Diffstat (limited to 'src/raw1394_private.h')
-rw-r--r--src/raw1394_private.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/raw1394_private.h b/src/raw1394_private.h
index 86688c7..616ac75 100644
--- a/src/raw1394_private.h
+++ b/src/raw1394_private.h
@@ -32,4 +32,12 @@ int _raw1394_sync_cb(struct raw1394_handle*, struct sync_cb_data*, int);
#define HBUF_SIZE 8192
#define CLEAR_REQ(reqp) memset((reqp), 0, sizeof(struct raw1394_request))
+#if SIZEOF_VOID_P == 4
+#define int2ptr(x) ((void *)(__u32)x)
+#define ptr2int(x) ((__u64)(__u32)x)
+#else
+#define int2ptr(x) ((void *)x)
+#define ptr2int(x) ((__u64)x)
+#endif
+
#endif /* _RAW1394_PRIVATE_H */