[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [45942] branches/soc-2011-tomato/intern/ cycles/util/util_types.h: Cycles: more attempts to fix windows build for BVH binning.

Brecht Van Lommel brechtvanlommel at pandora.be
Tue Apr 24 21:08:26 CEST 2012


Revision: 45942
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=45942
Author:   blendix
Date:     2012-04-24 19:08:26 +0000 (Tue, 24 Apr 2012)
Log Message:
-----------
Cycles: more attempts to fix windows build for BVH binning.

Modified Paths:
--------------
    branches/soc-2011-tomato/intern/cycles/util/util_types.h

Modified: branches/soc-2011-tomato/intern/cycles/util/util_types.h
===================================================================
--- branches/soc-2011-tomato/intern/cycles/util/util_types.h	2012-04-24 17:59:57 UTC (rev 45941)
+++ branches/soc-2011-tomato/intern/cycles/util/util_types.h	2012-04-24 19:08:26 UTC (rev 45942)
@@ -47,6 +47,12 @@
 
 #endif
 
+/* Bitness */
+
+#if defined(__ppc64__) || defined(__PPC64__) || defined(__x86_64__) || defined(__ia64__) || defined(_M_X64)
+#define __KERNEL_64_BIT__
+#endif
+
 /* SIMD Types */
 
 /* not enabled yet, just testing */
@@ -103,8 +109,14 @@
 typedef long long int64_t;
 typedef unsigned long long uint64_t;
 
+#ifdef __KERNEL_64_BIT__
+typedef int64_t ssize_t;
+#else
+typedef int32_t ssize_t;
 #endif
 
+#endif
+
 /* Generic Memory Pointer */
 
 typedef uint64_t device_ptr;




More information about the Bf-blender-cvs mailing list