mirror of
https://git.savannah.gnu.org/git/gnulib.git
synced 2025-08-08 17:22:05 +03:00
Problem reported by Po Lu in: https://lists.gnu.org/r/bug-gnulib/2024-06/msg00015.html * lib/ieee754.in.h (_IEEE754_BYTE_ORDER, _IEEE754_BIG_ENDIAN) (_IEEE754_LITTLE_ENDIAN, _IEEE754_FLOAT_WORD_ORDER): New macros. All uses of __BYTE_ORDER, __BIG_ENDIAN, __LITTLE_ENDIAN, __FLOAT_WORD_ORDER changed to use these new macros. [!_GL_GNULIB_HEADER]: Include bits/endian.h, not endian.h, as that’s what glibc does now. [_GL_GNULIB_HEADER]: Include endian.h instead of rolling our own. (__BEGIN_DECLS, __END_DECLS): Remove. All uses replaced by definiens. * modules/ieee754-h (Depends-on): Add endian.
43 lines
815 B
Plaintext
43 lines
815 B
Plaintext
Description:
|
|
An <ieee754.h> that is like GNU.
|
|
|
|
Files:
|
|
lib/ieee754.in.h
|
|
m4/ieee754-h.m4
|
|
|
|
Depends-on:
|
|
endian [$GL_GENERATE_IEEE754_H]
|
|
gen-header
|
|
|
|
configure.ac:
|
|
gl_IEEE754_H
|
|
gl_CONDITIONAL_HEADER([ieee754.h])
|
|
AC_PROG_MKDIR_P
|
|
|
|
Makefile.am:
|
|
BUILT_SOURCES += $(IEEE754_H)
|
|
|
|
# We need the following in order to create <ieee754.h> when the system
|
|
# doesn't have one that works with the given compiler.
|
|
if GL_GENERATE_IEEE754_H
|
|
ieee754.h: ieee754.in.h $(top_builddir)/config.status
|
|
@NMD@ $(AM_V_GEN)$(MKDIR_P) '%reldir%'
|
|
$(gl_V_at)$(SED_HEADER_STDOUT) \
|
|
-e 's/ifndef _GL_GNULIB_HEADER/if 0/g' \
|
|
$(srcdir)/ieee754.in.h > $@-t
|
|
$(AM_V_at)mv $@-t $@
|
|
else
|
|
ieee754.h: $(top_builddir)/config.status
|
|
rm -f $@
|
|
endif
|
|
MOSTLYCLEANFILES += ieee754.h ieee754.h-t
|
|
|
|
Include:
|
|
<ieee754.h>
|
|
|
|
License:
|
|
LGPLv2+
|
|
|
|
Maintainer:
|
|
all
|