From 81c2f1616b5353669a81c3f688a0ba6abf167c32 Mon Sep 17 00:00:00 2001 From: jthorn Date: Thu, 20 Mar 2003 13:28:44 +0000 Subject: slight tweak to maybe fix bug with Portland Group C compiler that doesn't grok C++-style comment on #ifdef when compiling C code, even though that #ifdef is inside #ifdef __cplusplus #ifdef __cplusplus #ifdef blah // C++-style comment #endif #endif fix is to change to C-style comment for the #ifdef git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@996 f88db872-0e4f-0410-b76b-b9085cfa78c5 --- src/jtutil/util.hh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/jtutil/util.hh b/src/jtutil/util.hh index 997c7a1..020584b 100644 --- a/src/jtutil/util.hh +++ b/src/jtutil/util.hh @@ -84,13 +84,14 @@ template void zero_C_array(int N, fp_t array[]); // -// more misc math stuff, valid only if has been #included +// more misc math stuff, valid only if has been #included; // -#ifdef PI // from "jt/stdc.h" - // floor/ceiling of double, returned as an int - inline int ifloor(double x) { return static_cast(floor(x)); } - inline int iceil (double x) { return static_cast(ceil (x)); } +// floor/ceiling of double, returned as an int +inline int ifloor(double x) { return static_cast(floor(x)); } +inline int iceil (double x) { return static_cast(ceil (x)); } +#ifdef PI /* PI is defined in "../include/stdc.h" */ + /* n.b. C-style comment needed for some preprocessors! */ // convert degrees <--> radians template inline fp_t degrees_of_radians(fp_t radians) { return (180.0/PI)*radians; } -- cgit v1.2.3