summaryrefslogtreecommitdiff
path: root/lib/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Makefile.am')
-rw-r--r--lib/Makefile.am4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am
index f1445800..c3ff1564 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -73,6 +73,9 @@ unistring/stdint.h : $(STDINT_H) stdint.mini.h
rm -f $@-t $@
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
echo '#include <stddef.h>'; \
+ echo '#if __cplusplus >= 201103'; \
+ echo '#include <cstdint>'; \
+ echo '#else'; \
echo '#if __GLIBC__ >= 2'; \
echo '#include <stdint.h>'; \
echo '#else'; \
@@ -103,6 +106,7 @@ unistring/stdint.h : $(STDINT_H) stdint.mini.h
-e 's/@''HAVE_SYS_BITYPES_H''@/0/g' \
< $(srcdir)/stdint.mini.h; \
echo '#endif'; \
+ echo '#endif'; \
} > $@-t
mv $@-t $@
BUILT_SOURCES += unistring/stdint.h