mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-12-18 03:19:15 +08:00
Remove conditional definition of off_t
As pointed out by Stefan Weil, conditionally defining off_t using a macro isn't a valid approach. off_t does not have a fixed size and is used in ABI definitions (e.g. syscalls), so silently guessing its size risks breaking the build. Additionally, all sane and modern platforms will have off_t.
This commit is contained in:
parent
60176fc5ae
commit
eb00574c4a
@ -37,11 +37,6 @@
|
||||
#include "scanutils.h"
|
||||
#include "tprintf.h"
|
||||
|
||||
// workaround for "'off_t' was not declared in this scope" with -std=c++11
|
||||
#if !defined(HAVE_OFF_T)
|
||||
typedef long off_t;
|
||||
#endif // off_t
|
||||
|
||||
enum Flags {
|
||||
FL_SPLAT = 0x01, // Drop the value, do not assign
|
||||
FL_INV = 0x02, // Character-set with inverse
|
||||
|
Loading…
Reference in New Issue
Block a user