Update to 2.0.0 tree from current Fremantle build
[opencv] / samples / c / minarea.c
index c03da82..2cff7b1 100644 (file)
@@ -2,6 +2,8 @@
 #pragma package <opencv>
 #endif
 
+#define CV_NO_BACKWARD_COMPATIBILITY
+
 #ifndef _EiC
 #include "cv.h"
 #include "highgui.h"
 int main( int argc, char** argv )
 {
     IplImage* img = cvCreateImage( cvSize( 500, 500 ), 8, 3 );
-#if !ARRAY        
+#if !ARRAY
     CvMemStorage* storage = cvCreateMemStorage(0);
 #endif
 
     cvNamedWindow( "rect & circle", 1 );
-        
+
     for(;;)
     {
         char key;
@@ -29,7 +31,7 @@ int main( int argc, char** argv )
         CvPoint2D32f center;
         CvPoint icenter;
         float radius;
-#if !ARRAY            
+#if !ARRAY
         CvSeq* ptseq = cvCreateSeq( CV_SEQ_KIND_GENERIC|CV_32SC2, sizeof(CvContour),
                                      sizeof(CvPoint), storage );
         for( i = 0; i < count; i++ )
@@ -61,7 +63,7 @@ int main( int argc, char** argv )
         cvZero( img );
         for( i = 0; i < count; i++ )
         {
-#if !ARRAY                
+#if !ARRAY
             pt0 = *CV_GET_SEQ_ELEM( CvPoint, ptseq, i );
 #else
             pt0 = points[i];
@@ -96,7 +98,7 @@ int main( int argc, char** argv )
         free( points );
 #endif
     }
-    
+
     cvDestroyWindow( "rect & circle" );
     return 0;
 }