[cig-commits] r7562 - cs/pythia/trunk/mpi
leif at geodynamics.org
leif at geodynamics.org
Fri Jun 29 16:20:22 PDT 2007
Author: leif
Date: 2007-06-29 16:20:21 -0700 (Fri, 29 Jun 2007)
New Revision: 7562
Modified:
cs/pythia/trunk/mpi/_mpi.c
Log:
Hand-tweaked the Pyrex-generated code! Pyrex inserts its own
prototype for pow(), instead of #including <math.h>. This causes
problems for the Linux BinBot when the code is compiled as C++:
_mpi.c:13: error: declaration of 'double pow(double, double)' throws different exceptions
/home/buildbot/opt/ibinbot/include/apbuild/glibc-2.2.1/bits/mathcalls.h:143: \
error: than previous declaration 'double pow(double, double) throw ()'
Modified: cs/pythia/trunk/mpi/_mpi.c
===================================================================
--- cs/pythia/trunk/mpi/_mpi.c 2007-06-29 22:21:38 UTC (rev 7561)
+++ cs/pythia/trunk/mpi/_mpi.c 2007-06-29 23:20:21 UTC (rev 7562)
@@ -10,7 +10,7 @@
#else
#define __PYX_EXTERN_C extern
#endif
-__PYX_EXTERN_C double pow(double, double);
+#include <math.h>
#include "stdlib.h"
#include "mpi.h"
More information about the cig-commits
mailing list