ソースを参照

libdecnumber: Don't error out on decNumberLocal.h re-inclusion

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>
Markus Armbruster 9 年 前
コミット
965379b455
1 ファイル変更0 行追加2 行削除
  1. 0 2
      include/libdecnumber/decNumberLocal.h

+ 0 - 2
include/libdecnumber/decNumberLocal.h

@@ -659,6 +659,4 @@
   /* [end of format-dependent macros and constants]		      */
   #endif
 
-#else
-  #error decNumberLocal included more than once
 #endif