aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Makefile.am2
-rw-r--r--lib/plp_inttypes.h26
2 files changed, 26 insertions, 2 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am
index af857cd..35cbb46 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -1,5 +1,3 @@
-# $Id$
-#
INCLUDES = -I$(top_srcdir)/intl
AM_CFLAGS = $(THREADED_CFLAGS)
AM_CXXFLAGS = $(THREADED_CXXFLAGS)
diff --git a/lib/plp_inttypes.h b/lib/plp_inttypes.h
new file mode 100644
index 0000000..acfa7b8
--- /dev/null
+++ b/lib/plp_inttypes.h
@@ -0,0 +1,26 @@
+#ifndef _INTTYPES_H_
+#define _INTTYPES_H_
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include <sys/types.h>
+
+#ifdef HAVE_STDINT_H
+#include <stdint.h>
+#endif
+
+#ifdef HAVE_SYS_INT_TYPES_H
+#include <sys/int_types.h>
+#endif
+
+#ifndef GNU_INTTYPES
+typedef uint8_t u_int8_t;
+typedef uint16_t u_int16_t;
+typedef uint32_t u_int32_t;
+typedef uint64_t u_int64_t;
+typedef int64_t s_int64_t;
+#endif // GNU_INTTYPES
+
+#endif // _INTTYPES_H_