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. 

#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