OSDN Git Service

progs: Prevent clash with min macro.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 12 Feb 2009 13:54:20 +0000 (13:54 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 12 Feb 2009 13:54:55 +0000 (13:54 +0000)
progs/demos/streaming_rect.c

index 4d4656e..294f9c3 100644 (file)
@@ -47,7 +47,10 @@ static void Idle( void )
 }
 
 /*static int max( int a, int b ) { return a > b ? a : b; }*/
+
+#ifndef min
 static int min( int a, int b ) { return a < b ? a : b; }
+#endif
 
 static void DrawObject()
 {