Go to the documentation of this file. 20 #ifndef TESSERACT_CCUTIL_PLATFORM_H__ 21 #define TESSERACT_CCUTIL_PLATFORM_H__ 30 #define WIN32_LEAN_AND_MEAN 37 #define snprintf _snprintf 39 #if (_MSC_VER <= 1400) 40 #define vsnprintf _vsnprintf 49 #define MAX_PATH PATH_MAX 54 #if defined(_WIN32) || defined(__CYGWIN__) 56 #define M_PI 3.14159265358979323846 60 #if defined(_WIN32) || defined(__CYGWIN__) 61 #if defined(TESS_EXPORTS) 62 #define TESS_API __declspec(dllexport) 63 #elif defined(TESS_IMPORTS) 64 #define TESS_API __declspec(dllimport) 71 #if defined(TESS_EXPORTS) || defined(TESS_IMPORTS) 72 #define TESS_API __attribute__ ((visibility ("default"))) 73 #define TESS_LOCAL __attribute__ ((visibility ("hidden"))) 84 #if defined(_WIN32) || defined(__CYGWIN__) 85 #define _TESS_FILE_BASENAME_ \ 86 (strrchr(__FILE__, '\\') ? strrchr(__FILE__, '\\') + 1 : __FILE__) 88 #define _TESS_FILE_BASENAME_ \ 89 (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__) 92 #endif // TESSERACT_CCUTIL_PLATFORM_H__