From 66ee02eb49d213c48bb2f5aa3525fca0c1ab922e Mon Sep 17 00:00:00 2001 From: cignoni Date: Wed, 20 Feb 2008 11:31:13 +0000 Subject: [PATCH] __int64 is a MS only type. Added portability defines at the beginning. --- vcg/space/index/grid_util.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/vcg/space/index/grid_util.h b/vcg/space/index/grid_util.h index 08efbd11..f2b84fef 100644 --- a/vcg/space/index/grid_util.h +++ b/vcg/space/index/grid_util.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.12 2008/02/19 12:43:01 callieri +in BestDim(...) changed int -> _int64 to cope with programs with a very large cell number (like plyMC) + Revision 1.11 2008/02/04 19:18:44 ganovelli typo corrected @@ -66,6 +69,12 @@ Removed BestDim function from the grid_static_ptr class and moved to a indipende #include #include + +#ifndef WIN32 +#define __int64 long long +#define __cdecl +#endif + namespace vcg { /** BasicGrid @@ -176,7 +185,7 @@ public: assert(size[2]>=0.0); - __int64 ncell = __int64(elems*GFactor); // Calcolo numero di voxel + __int64 ncell = (__int64)(elems*GFactor); // Calcolo numero di voxel if(ncell