SOURCES: mysql-min_max.patch (NEW) - new

arekm arekm at pld-linux.org
Mon Apr 16 15:38:50 CEST 2007


Author: arekm                        Date: Mon Apr 16 13:38:50 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- new

---- Files affected:
SOURCES:
   mysql-min_max.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/mysql-min_max.patch
diff -u /dev/null SOURCES/mysql-min_max.patch:1.1
--- /dev/null	Mon Apr 16 15:38:50 2007
+++ SOURCES/mysql-min_max.patch	Mon Apr 16 15:38:45 2007
@@ -0,0 +1,15 @@
+--- ./include/my_global.h.org	2007-04-16 15:21:49.919125205 +0200
++++ ./include/my_global.h	2007-04-16 15:23:56.166608710 +0200
+@@ -543,9 +543,9 @@
+ #endif
+ 
+ /* Define some useful general macros */
+-#if !defined(max)
+-#define max(a, b)	((a) > (b) ? (a) : (b))
+-#define min(a, b)	((a) < (b) ? (a) : (b))
++#if !defined(mysql_max)
++static __inline long min( long a, long b ) { return ( ( a < b ) ? a : b ); }
++static __inline long max( long a, long b ) { return ( ( a > b ) ? a : b ); }
+ #endif
+ 
+ #if !defined(HAVE_UINT)
================================================================


More information about the pld-cvs-commit mailing list