Commit 9b7c2933 authored by Jérome Perrin's avatar Jérome Perrin

component/tesseract: Fix compilation errors for gcc 4.7 / debian 7.1

parent f67bd37e
From 6712eff6cd1b600156d90be6cea394a53c2152a5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Fri, 17 Aug 2018 05:34:58 +0200
Subject: [PATCH] [SlapOS] Compatibility for gcc 4.7 / debian 7.1
This was not really investigated, it seems to be related to how the
standard changed in
https://sourceware.org/bugzilla/show_bug.cgi?id=15366
---
src/ccutil/host.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/ccutil/host.h b/src/ccutil/host.h
index 989ccf1b..af592f30 100644
--- a/src/ccutil/host.h
+++ b/src/ccutil/host.h
@@ -28,6 +28,7 @@
#endif
#include <cinttypes> // PRId32, ...
+#define __STDC_LIMIT_MACROS
#include <cstdint> // int32_t, ...
// definitions of portable data types (numbers and characters)
--
2.11.0
...@@ -28,6 +28,11 @@ pre-configure = ...@@ -28,6 +28,11 @@ pre-configure =
autoreconf -ivf autoreconf -ivf
autoconf -Wno-portability autoconf -Wno-portability
patch-options =
-p1
patches =
${:_profile_base_location_}/0001-SlapOS-Compatibility-for-gcc-4.7-debian-7.1.patch#96caf3fe08b55fa2a7bfb0f7607bc21e
configure-options = configure-options =
--disable-static --disable-static
--datarootdir=${tesseract-traineddata:location} --datarootdir=${tesseract-traineddata:location}
......
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