fixed compilation for vs2008
authorAnatoly Baksheev <no@email>
Sun, 17 Mar 2013 14:02:52 +0000 (18:02 +0400)
committerAnatoly Baksheev <no@email>
Sun, 17 Mar 2013 14:02:52 +0000 (18:02 +0400)
modules/softcascade/src/cuda/channels.cu
modules/softcascade/src/cuda_invoker.hpp

index 6928671..d014bc0 100644 (file)
@@ -63,6 +63,9 @@ __host__ __device__ __forceinline__ int divUp(int total, int grain)
 
 namespace cv { namespace softcascade { namespace device
 {
+    typedef unsigned int uint;
+    typedef unsigned short ushort;
+
     // Utility function to extract unsigned chars from an unsigned integer
     __device__ uchar4 int_to_uchar4(unsigned int in)
     {
index dfce0ba..9bdd45b 100644 (file)
@@ -58,6 +58,8 @@
 namespace cv { namespace softcascade { namespace device {
 
 typedef unsigned char uchar;
+typedef unsigned int uint;
+typedef unsigned short ushort;
 
 struct Octave
 {