Skip to content

Commit

Permalink
Merge pull request #980 from stweil/clean
Browse files Browse the repository at this point in the history
Remove portability code which is no longer needed
  • Loading branch information
zdenop committed Jun 5, 2017
2 parents 22bcf4d + 1cf8fe5 commit 8c29e68
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 144 deletions.
1 change: 0 additions & 1 deletion api/baseapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
#if defined(_WIN32)
#ifdef _MSC_VER
#include "vcsversion.h"
#include "mathfix.h"
#elif MINGW
// workaround for stdlib.h with -std=c++11 for _splitpath and _MAX_FNAME
#undef __STRICT_ANSI__
Expand Down
4 changes: 0 additions & 4 deletions api/pdfrenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@
#include "strngs.h"
#include "tprintf.h"

#ifdef _MSC_VER
#include "mathfix.h"
#endif

/*
Design notes from Ken Sharp, with light editing.
Expand Down
5 changes: 0 additions & 5 deletions ccmain/equationdetect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@
//
///////////////////////////////////////////////////////////////////////

#ifdef _MSC_VER
#pragma warning(disable:4244) // Conversion warnings
#include <mathfix.h>
#endif

#ifdef __MINGW32__
#include <limits.h>
#endif
Expand Down
4 changes: 1 addition & 3 deletions ccutil/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,5 @@ libtesseract_ccutil_la_SOURCES = \
params.cpp universalambigs.cpp

if T_WIN
AM_CPPFLAGS += -I$(top_srcdir)/vs2010/port -DWINDLLNAME=\"lib@GENERIC_LIBRARY_NAME@\"
noinst_HEADERS += ../vs2010/port/strtok_r.h
libtesseract_ccutil_la_SOURCES += ../vs2010/port/strtok_r.cpp
AM_CPPFLAGS += -DWINDLLNAME=\"lib@GENERIC_LIBRARY_NAME@\"
endif
10 changes: 3 additions & 7 deletions ccutil/ambigs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,9 @@
#include "helpers.h"
#include "universalambigs.h"

#if defined _WIN32
#ifndef __GNUC__
#define strtok_r strtok_s
#else
#include "strtok_r.h"
#endif /* __GNUC__ */
#endif /* _WIN32 */
#if defined(_WIN32) && !defined(__GNUC__)
# define strtok_r(str, delim, saveptr) strtok_s(str, delim, saveptr)
#endif /* _WIN32 && !__GNUC__ */

namespace tesseract {

Expand Down
4 changes: 0 additions & 4 deletions classify/featdefs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@
/*-----------------------------------------------------------------------------
Include Files and Type Defines
-----------------------------------------------------------------------------*/
#ifdef _MSC_VER
#include <mathfix.h>
#endif

#include "featdefs.h"
#include "emalloc.h"
#include "danerror.h"
Expand Down
38 changes: 0 additions & 38 deletions vs2010/port/mathfix.h

This file was deleted.

55 changes: 0 additions & 55 deletions vs2010/port/strtok_r.cpp

This file was deleted.

27 changes: 0 additions & 27 deletions vs2010/port/strtok_r.h

This file was deleted.

0 comments on commit 8c29e68

Please sign in to comment.