mirror of
				https://sourceware.org/git/glibc.git
				synced 2025-11-03 20:53:13 +03:00 
			
		
		
		
	nldbl-compat.c: Include math.h before nldbl-compat.h.
Jeff Law noticed that native PowerPC builds were broken by my having made math_ldbl_opt.h not include math.h. nldbl-compat.c formerly got math.h via libioP.h and math_ldbl_opt.h, *without* __NO_LONG_DOUBLE_MATH; after my change it got it via nldbl-compat.h *with* __NO_LONG_DOUBLE_MATH, but __NO_LONG_DOUBLE_MATH mode is forbidden on hosts that define __HAVE_DISTINCT_FLOAT128, so the build breaks. This is the quick fix. * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h before nldbl-compat.h.
This commit is contained in:
		@@ -1,3 +1,8 @@
 | 
			
		||||
2018-03-11  Zack Weinberg  <zackw@panix.com>
 | 
			
		||||
 | 
			
		||||
	* sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
 | 
			
		||||
	before nldbl-compat.h.
 | 
			
		||||
 | 
			
		||||
2018-03-10  Zack Weinberg  <zackw@panix.com>
 | 
			
		||||
 | 
			
		||||
	* sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
 | 
			
		||||
 
 | 
			
		||||
@@ -20,6 +20,7 @@
 | 
			
		||||
#include <stdarg.h>
 | 
			
		||||
#include <stdio.h>
 | 
			
		||||
#include <libioP.h>
 | 
			
		||||
#include <math.h>
 | 
			
		||||
#include <wchar.h>
 | 
			
		||||
#include <printf.h>
 | 
			
		||||
#include <monetary.h>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user