aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFrank Warmerdam <warmerdam@pobox.com>2004-08-31 22:57:11 +0000
committerFrank Warmerdam <warmerdam@pobox.com>2004-08-31 22:57:11 +0000
commit531b737b6dac86fbc1c7f9b7353b88ff326e931f (patch)
tree49e450bd8f36ee38633db2a5053b2de34bbdbc18 /src
parent2002eb6274391efc8efb469f77590d442a09edbf (diff)
downloadPROJ-531b737b6dac86fbc1c7f9b7353b88ff326e931f.tar.gz
PROJ-531b737b6dac86fbc1c7f9b7353b88ff326e931f.zip
Don't re-declare hypot() on win32 as it will conflict with math.h as per
http://bugzilla.remotesensing.org/show_bug.cgi?id=495 git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1220 4e78687f-474d-0410-85f9-8d5e500ac6b2
Diffstat (limited to 'src')
-rw-r--r--src/projects.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/projects.h b/src/projects.h
index d1b01083..c3a640de 100644
--- a/src/projects.h
+++ b/src/projects.h
@@ -28,6 +28,10 @@
******************************************************************************
*
* $Log$
+ * Revision 1.19 2004/08/31 22:57:11 warmerda
+ * Don't re-declare hypot() on win32 as it will conflict with math.h as per
+ * http://bugzilla.remotesensing.org/show_bug.cgi?id=495
+ *
* Revision 1.18 2004/04/15 13:56:45 warmerda
* changed PJD_ERR_GEOCENTRIC to -45
*
@@ -116,7 +120,10 @@ extern "C" {
#define MAX_PATH_FILENAME 1024
#endif
/* prototype hypot for systems where absent */
+#ifndef _WIN32
extern double hypot(double, double);
+#endif
+
/* some useful constants */
#define HALFPI 1.5707963267948966
#define FORTPI 0.78539816339744833