diff options
author | D G Turner | 2013-08-02 06:23:52 +0100 |
---|---|---|
committer | D G Turner | 2013-08-02 06:23:52 +0100 |
commit | 17ccd18ed3a41702ac7de7e55fca09578f734ccb (patch) | |
tree | 64e1ff8fec117a833d158a5cb38d66e5a766d5ab | |
parent | 26a9b528dadde6521f80a7121af69f6af6f53b9a (diff) | |
download | scummvm-rg350-17ccd18ed3a41702ac7de7e55fca09578f734ccb.tar.gz scummvm-rg350-17ccd18ed3a41702ac7de7e55fca09578f734ccb.tar.bz2 scummvm-rg350-17ccd18ed3a41702ac7de7e55fca09578f734ccb.zip |
COMMON: Add comment explaining reason for defining math constants.
-rw-r--r-- | common/scummsys.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/scummsys.h b/common/scummsys.h index aeffbbfcf3..099b12b291 100644 --- a/common/scummsys.h +++ b/common/scummsys.h @@ -144,6 +144,11 @@ #endif #endif +// The following math constants are usually defined by the system math.h header, but +// they are not part of the ANSI C++ standards and so can NOT be relied upon to be +// present i.e. when -std=c++11 is passed to GCC, enabling strict ANSI compliance. +// As we rely on these being present, we define them if they are not set. + #ifndef M_SQRT1_2 #define M_SQRT1_2 0.70710678118654752440 /* 1/sqrt(2) */ #endif |