MSVS support inttypes.h from VS 2015

This commit is contained in:
zdenop 2019-04-23 20:19:54 +02:00 committed by Stefan Weil
parent 7fc245c38a
commit 8ee5c865f1
8 changed files with 9 additions and 27 deletions

View File

@ -25,7 +25,6 @@
#include "elst.h" // for ELIST_ITERATOR, ELISTIZEH, ELIST_LINK
#include "elst2.h" // for ELIST2_ITERATOR, ELIST2IZEH, ELIST2_LINK
#include "errcode.h" // for ASSERT_HOST
#include "host.h" // for PRId32
#include "ocrblock.h" // for BLOCK
#include "params.h" // for DoubleParam, double_VAR_H
#include "pdblock.h" // for PDBLK

View File

@ -33,11 +33,11 @@
#include "boxread.h" // for ReadMemBoxes
#include "callcpp.h" // for window_wait
#include "helpers.h" // for IntCastRounded, TRand, ClipToRange, Modulo
#include "host.h" // for PRId64
#include "rect.h" // for TBOX
#include "scrollview.h" // for ScrollView, ScrollView::CYAN, ScrollView::NONE
#include "serialis.h" // for TFile
#include "tprintf.h" // for tprintf
#include <cinttypes> // for PRId64
// Number of documents to read ahead while training. Doesn't need to be very
// large.

View File

@ -16,11 +16,11 @@
*
**********************************************************************/
#include "allheaders.h"
#include "pdblock.h"
#include <cstdlib>
#include <memory> // std::unique_ptr
#include "allheaders.h"
#include "host.h" // for PRId32
#include <cinttypes> // for PRId32
// Include automatically generated configuration file if running autoconf.
#ifdef HAVE_CONFIG_H

View File

@ -16,12 +16,12 @@
**********************************************************************/
#include "polyblk.h"
#include "elst.h"
#include <cctype>
#include <cinttypes> // PRId32
#include <cmath>
#include <cstdio>
#include <memory> // std::unique_ptr
#include "elst.h"
#include "host.h" // for PRId32
// Include automatically generated configuration file if running autoconf.
#ifdef HAVE_CONFIG_H

View File

@ -25,24 +25,7 @@
#include <windows.h>
#undef min
#undef max
#endif
#include <cinttypes> // PRId32, ...
#include <cstdint> // int32_t, ...
#if defined(_WIN32)
/* MinGW defines the standard PRI... macros, but MSVS doesn't. */
#if !defined(PRId32)
#define PRId32 "d"
#endif
#if !defined(PRId64)
#define PRId64 "I64d"
#endif
#endif /* _WIN32 */
#endif // _WIN32
// Return true if x is within tolerance of y
template<class T> bool NearlyEqual(T x, T y, T tolerance) {

View File

@ -29,7 +29,6 @@
#include <cinttypes> // for PRId64
#include <memory>
#include "elst.h"
#include "host.h" // for PRId64
#include "params.h"
#include "ratngs.h"
#include "tesscallback.h"

View File

@ -28,6 +28,7 @@
#include "dppoint.h"
#include "imagefind.h"
#include "workingpartset.h"
#include "host.h" // for NearlyEqual
#include <algorithm>

View File

@ -23,9 +23,9 @@
#include "tabfind.h"
#include "alignedblob.h"
#include "blobbox.h"
#include "colpartitiongrid.h"
#include "detlinefit.h"
#include "host.h" // for NearlyEqual
#include "linefind.h"
#include <algorithm>