tesseract/ccutil/platform.h
theraysmith d8b1456dd5 Changes to ccutil for 3.00
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@305 d0cd1f9f-072b-0410-8dd7-cf729c803f20
2009-07-11 02:50:24 +00:00

27 lines
479 B
C

// Place holder
#define DLLSYM
#ifdef __MSW32__
#define SIGNED
#define snprintf _snprintf
#define read _read
#define write _write
#define close _close
#define lseek _lseek
#define open _open
#define ultoa _ultoa
#define ltoa _ltoa
#define strtok_r(s, d, p) strtok(s, d)
#if (_MSC_VER <= 1400)
#define vsnprintf _vsnprintf
#endif
#else
#define __UNIX__
#include <limits.h>
#ifndef PATH_MAX
#define MAX_PATH 4096
#else
#define MAX_PATH PATH_MAX
#endif
#define SIGNED signed
#endif