cvs: pecl /stats config.w32 randlib.c
| From: | Wez Furlong | Date: | Fri, 09 Jan 2004 19:06:19 +0000 |
| Subject: | cvs: pecl /stats config.w32 randlib.c | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-720@lists.php.net to get a copy of this message | ||
wez Fri Jan 9 14:06:19 2004 EDT
Added files:
/pecl/stats config.w32
Modified files:
/pecl/stats randlib.c
Log:
fixes for win32; final link fails due to missing lgamma() function
Index: pecl/stats/randlib.c
diff -u pecl/stats/randlib.c:1.1 pecl/stats/randlib.c:1.2
--- pecl/stats/randlib.c:1.1 Fri Jan 9 13:23:51 2004
+++ pecl/stats/randlib.c Fri Jan 9 14:06:19 2004
@@ -3,8 +3,15 @@
#include <math.h>
#include <stdlib.h>
#define ABS(x) ((x) >= 0 ? (x) : -(x))
-#define min(a,b) ((a) <= (b) ? (a) : (b))
-#define max(a,b) ((a) >= (b) ? (a) : (b))
+
+#ifndef min
+# define min(a,b) ((a) <= (b) ? (a) : (b))
+#endif
+
+#ifndef max
+# define max(a,b) ((a) >= (b) ? (a) : (b))
+#endif
+
void ftnstop2(char*);
float genbet(float aa,float bb)
/*
Index: pecl/stats/config.w32
+++ pecl/stats/config.w32
// $Id: config.w32,v 1.1 2004/01/09 19:06:19 wez Exp $
// vim:ft=javascript
ARG_ENABLE("stats", "statistics support", "no");
if (PHP_STATS != "no") {
EXTENSION('stats', 'statistics.c com.c dcdflib.c ipmpar.c linpack.c
randlib.c');
}