[email protected] wrote:
Thanks for the answer. I think using dedicated include file that is included 
after the
opencv stuff and have definition like this is a working solution.
Is this only needed for Windows  when using optimizing on the g++.
If only needed on Windows, i would include #if define WIN32 || defined WIN64 .
Are there other issues that need to be addressed in the openCV/window contest 
like
floating point things or SSE things. For now, i don“t use the SSE optimized 
MinGW, but
i want switch to it later. I really think, that if TCC can be used on openCV it 
will be used
by a lot of people.

The recipe I gave is meant mostly as TODO for tcc development, that
is for someone who might eventually want to implement this missing
feature.

How far you (as user) want to go to workaround this in order to still
use tcc with your code is solely up to you.  I cannot help you there.

--- grischka

#ifdef __TINYC__
register long long _val_;
#define cvGetSize(img) (_val_=((long long(*)(IplImage*))cvGetSize)(img),_val_)
#define cvCreateImage(x,y,z) ((IplImage*(*)(long long , int, 
int))cvCreateImage)( x,y,z)
#endif


_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to