Go to the documentation of this file.
20 #ifndef TESSERACT_CCUTIL_PLATFORM_H__
21 #define TESSERACT_CCUTIL_PLATFORM_H__
27 typedef struct _BLOB {
33 #define snprintf _snprintf
34 #if (_MSC_VER <= 1400)
35 #define vsnprintf _vsnprintf
43 #define MAX_PATH PATH_MAX
48 #if defined(_WIN32) || defined(__CYGWIN__)
49 #if defined(TESS_EXPORTS)
50 #define TESS_API __declspec(dllexport)
51 #elif defined(TESS_IMPORTS)
52 #define TESS_API __declspec(dllimport)
59 #if defined(TESS_EXPORTS) || defined(TESS_IMPORTS)
60 #define TESS_API __attribute__ ((visibility ("default")))
61 #define TESS_LOCAL __attribute__ ((visibility ("hidden")))
72 #endif // TESSERACT_CCUTIL_PLATFORM_H__