diff lib/printf-frexp.c @ 15933:6860d9f2e394

printf-frexpl: Simplify for platforms where 'long double' == 'double'. * lib/printf-frexpl.c: Include <config.h>. (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function. * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second time. * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE. * modules/printf-frexpl (Depends-on): Add printf-frexp. Update conditions.
author Bruno Haible <bruno@clisp.org>
date Mon, 10 Oct 2011 17:17:26 +0200
parents 97fc9a21a8fb
children 8250f2777afc
line wrap: on
line diff
--- a/lib/printf-frexp.c
+++ b/lib/printf-frexp.c
@@ -14,7 +14,9 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#include <config.h>
+#if ! defined USE_LONG_DOUBLE
+# include <config.h>
+#endif
 
 /* Specification.  */
 #ifdef USE_LONG_DOUBLE