Commit 3d3629f8 authored by Akira TAGOH's avatar Akira TAGOH

Fix a potability issue about stdint.h

parent 02db01ac
......@@ -126,6 +126,7 @@ dnl ==========================================================================
AC_HEADER_DIRENT
AC_HEADER_STDC
AC_CHECK_HEADERS([fcntl.h regex.h stdlib.h string.h unistd.h sys/vfs.h sys/statfs.h sys/param.h sys/mount.h])
AX_CREATE_STDINT_H([src/fcstdint.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
......
This diff is collapsed.
......@@ -80,14 +80,15 @@ INCLUDES = \
EXTRA_DIST = makealias
noinst_HEADERS=fcint.h fcftint.h fcdeprecate.h
noinst_HEADERS=fcint.h fcftint.h fcdeprecate.h fcstdint.h
ALIAS_FILES = fcalias.h fcaliastail.h fcftalias.h fcftaliastail.h
BUILT_SOURCES = $(ALIAS_FILES) \
../fc-case/fccase.h \
../fc-glyphname/fcglyphname.h \
../fc-lang/fclang.h
../fc-lang/fclang.h \
stamp-fcstdint
noinst_PROGRAMS = fcarch
......@@ -158,7 +159,13 @@ fcftaliastail.h: fcftalias.h
fcftalias.h: $(top_srcdir)/src/makealias $(PUBLIC_FT_FILES)
$(AM_V_GEN) sh $(top_srcdir)/src/makealias "$(top_srcdir)/src" fcftalias.h fcftaliastail.h $(PUBLIC_FT_FILES)
stamp-fcstdint: $(top_builddir)/config.status
$(AM_V_GEN) cd $(top_builddir) && \
$(SHELL) ./config.status src/fcstdint.h
@touch $@
CLEANFILES = $(ALIAS_FILES)
DISTCLEANFILES = stamp-fcstdint fcstdint.h
fontconfig.def: $(PUBLIC_FILES) $(PUBLIC_FT_FILES)
echo Generating $@
......
......@@ -29,15 +29,10 @@
#include <config.h>
#endif
#include "fcstdint.h"
#include <stdlib.h>
#include <stdio.h>
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#elif defined(HAVE_STDINT_H)
#include <stdint.h>
#else
#error missing C99 integer data types
#endif
#include <string.h>
#include <ctype.h>
#include <errno.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment