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 57 #ifdef USE_STD_NAMESPACE 62 #if defined(_WIN32) || defined(__CYGWIN__) 64 #define M_PI 3.14159265358979323846 68 #if defined(_WIN32) || defined(__CYGWIN__) 69 #if defined(TESS_EXPORTS) 70 #define TESS_API __declspec(dllexport) 71 #elif defined(TESS_IMPORTS) 72 #define TESS_API __declspec(dllimport) 79 #if defined(TESS_EXPORTS) || defined(TESS_IMPORTS) 80 #define TESS_API __attribute__ ((visibility ("default"))) 81 #define TESS_LOCAL __attribute__ ((visibility ("hidden"))) 92 #endif // TESSERACT_CCUTIL_PLATFORM_H_