diff options
author | Markus Armbruster <armbru@redhat.com> | 2016-06-29 11:45:54 +0200 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2016-07-12 16:19:16 +0200 |
commit | 6031a51f1dab45bc6d5f8db1825e8f4f7915a870 (patch) | |
tree | c6ceca7ddaf0852c36abddc75444ba178c56027a /include/libdecnumber/decNumber.h | |
parent | 121d07125bb6d7079c7ebafdd3efe8c3a01cc440 (diff) |
libdecnumber: Don't fool around with guards to avoid #include
Some libdecnumber headers avoid including decNumber.h or decContext.h
again by checking their header guards. Don't. Including them
multiple times is safe, and the compiler can do it efficiently.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'include/libdecnumber/decNumber.h')
-rw-r--r-- | include/libdecnumber/decNumber.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/libdecnumber/decNumber.h b/include/libdecnumber/decNumber.h index 9fa4e6a0c9..3f3a74af9e 100644 --- a/include/libdecnumber/decNumber.h +++ b/include/libdecnumber/decNumber.h @@ -38,9 +38,7 @@ #define DECFULLNAME "Decimal Number Module" /* Verbose name */ #define DECAUTHOR "Mike Cowlishaw" /* Who to blame */ - #if !defined(DECCONTEXT) - #include "libdecnumber/decContext.h" - #endif + #include "libdecnumber/decContext.h" /* Bit settings for decNumber.bits */ #define DECNEG 0x80 /* Sign; 1=negative, 0=positive or zero */ |