From fe10c74faaa40c90e0a638808b28c8563fa9daf1 Mon Sep 17 00:00:00 2001 From: Anatoly Baksheev Date: Sun, 17 Mar 2013 18:02:52 +0400 Subject: [PATCH] fixed compilation for vs2008 --- modules/softcascade/src/cuda/channels.cu | 3 +++ modules/softcascade/src/cuda_invoker.hpp | 2 ++ 2 files changed, 5 insertions(+) diff --git a/modules/softcascade/src/cuda/channels.cu b/modules/softcascade/src/cuda/channels.cu index 6928671481..d014bc0bed 100644 --- a/modules/softcascade/src/cuda/channels.cu +++ b/modules/softcascade/src/cuda/channels.cu @@ -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) { diff --git a/modules/softcascade/src/cuda_invoker.hpp b/modules/softcascade/src/cuda_invoker.hpp index dfce0ba097..9bdd45b883 100644 --- a/modules/softcascade/src/cuda_invoker.hpp +++ b/modules/softcascade/src/cuda_invoker.hpp @@ -58,6 +58,8 @@ namespace cv { namespace softcascade { namespace device { typedef unsigned char uchar; +typedef unsigned int uint; +typedef unsigned short ushort; struct Octave {