Skip to content

Commit

Permalink
libdecnumber: Don't error out on decNumberLocal.h re-inclusion
Browse files Browse the repository at this point in the history
decNumberLocal.h errors out when it's included with its header guard
defined.  This catches multiple inclusions.

Drop that.  Including it 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>
  • Loading branch information
Markus Armbruster committed Jul 12, 2016
1 parent 6031a51 commit 965379b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions include/libdecnumber/decNumberLocal.h
Expand Up @@ -659,6 +659,4 @@
/* [end of format-dependent macros and constants] */
#endif

#else
#error decNumberLocal included more than once
#endif

0 comments on commit 965379b

Please sign in to comment.