diff options
author | jthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5> | 2003-03-20 13:28:44 +0000 |
---|---|---|
committer | jthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5> | 2003-03-20 13:28:44 +0000 |
commit | 81c2f1616b5353669a81c3f688a0ba6abf167c32 (patch) | |
tree | dff0d42782472a6c964fb115b861ccf1933a2028 /src | |
parent | d0e68d59bf3b6fd35cc675c6217765f59c63416b (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/jtutil/util.hh | 11 |
1 files 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 <typename fp_t> void zero_C_array(int N, fp_t array[]); // -// more misc math stuff, valid only if <math.h> has been #included +// more misc math stuff, valid only if <math.h> 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<int>(floor(x)); } - inline int iceil (double x) { return static_cast<int>(ceil (x)); } +// floor/ceiling of double, returned as an int +inline int ifloor(double x) { return static_cast<int>(floor(x)); } +inline int iceil (double x) { return static_cast<int>(ceil (x)); } +#ifdef PI /* PI is defined in "../include/stdc.h" */ + /* n.b. C-style comment needed for some preprocessors! */ // convert degrees <--> radians template <typename fp_t> inline fp_t degrees_of_radians(fp_t radians) { return (180.0/PI)*radians; } |