ports/textproc/teckit/files/patch-SFconv_UtfCodec.h
Alexey Dokuchaev dbef05a3f2 Unbreak with pre-C++11 compilers, e.g. with gcc 4.2.1 which is still the
default compiler on some tier-2 architectures like powerpc and sparc64,
by using identical types from C's <stdint.h> rather than C++'s <cstdint>
header file.  While here, convert to USES+=localbase.

PR:		225171
Reported by:	jhibbits
2018-01-15 10:01:19 +00:00

15 lines
314 B
C++

--- SFconv/UtfCodec.h.orig 2017-06-23 19:39:26 UTC
+++ SFconv/UtfCodec.h
@@ -28,11 +28,7 @@ of the License or (at your option) any l
#include <cstddef>
#include <cstdlib>
-#include <cstdint>
-
-using std::int8_t;
-using std::uint8_t;
-using std::ptrdiff_t;
+#include <stdint.h>
typedef uint32_t uchar_t;