Go to the documentation of this file. 20 #ifndef TESSERACT_CCUTIL_PLATFORM_H__ 21 #define TESSERACT_CCUTIL_PLATFORM_H__ 30 #ifndef WIN32_LEAN_AND_MEAN 31 #define WIN32_LEAN_AND_MEAN 39 #define snprintf _snprintf 41 #if (_MSC_VER <= 1400) 42 #define vsnprintf _vsnprintf 51 #define MAX_PATH PATH_MAX 56 #if defined(_WIN32) || defined(__CYGWIN__) 58 #define M_PI 3.14159265358979323846 62 #if defined(_WIN32) || defined(__CYGWIN__) 63 #if defined(TESS_EXPORTS) 64 #define TESS_API __declspec(dllexport) 65 #elif defined(TESS_IMPORTS) 66 #define TESS_API __declspec(dllimport) 73 #if defined(TESS_EXPORTS) || defined(TESS_IMPORTS) 74 #define TESS_API __attribute__ ((visibility ("default"))) 75 #define TESS_LOCAL __attribute__ ((visibility ("hidden"))) 86 #if defined(_WIN32) || defined(__CYGWIN__) 87 #define _TESS_FILE_BASENAME_ \ 88 (strrchr(__FILE__, '\\') ? strrchr(__FILE__, '\\') + 1 : __FILE__) 90 #define _TESS_FILE_BASENAME_ \ 91 (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__) 94 #endif // TESSERACT_CCUTIL_PLATFORM_H__