aboutsummaryrefslogtreecommitdiff
path: root/include/libdecnumber/dpd/decimal64.h
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2016-06-29 11:45:54 +0200
committerMarkus Armbruster <armbru@redhat.com>2016-07-12 16:19:16 +0200
commit6031a51f1dab45bc6d5f8db1825e8f4f7915a870 (patch)
treec6ceca7ddaf0852c36abddc75444ba178c56027a /include/libdecnumber/dpd/decimal64.h
parent121d07125bb6d7079c7ebafdd3efe8c3a01cc440 (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/dpd/decimal64.h')
-rw-r--r--include/libdecnumber/dpd/decimal64.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/libdecnumber/dpd/decimal64.h b/include/libdecnumber/dpd/decimal64.h
index 2f6c049402..a375faf4d2 100644
--- a/include/libdecnumber/dpd/decimal64.h
+++ b/include/libdecnumber/dpd/decimal64.h
@@ -61,9 +61,7 @@
#ifndef DECNUMDIGITS
#define DECNUMDIGITS DECIMAL64_Pmax /* size if not already defined*/
#endif
- #ifndef DECNUMBER
- #include "libdecnumber/decNumber.h"
- #endif
+ #include "libdecnumber/decNumber.h"
/* Decimal 64-bit type, accessible by bytes */
typedef struct {