~ubuntu-branches/ubuntu/vivid/tesseract/vivid

« back to all changes in this revision

Viewing changes to ccutil/platform.h

  • Committer: Package Import Robot
  • Author(s): Jeff Breidenbach
  • Date: 2014-02-03 11:10:20 UTC
  • mfrom: (1.3.1) (19.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20140203111020-igquodd7pjlp3uri
Tags: 3.03.01-1
* New upstream release, includes critical fix to PDF rendering
* Complete leptonlib transition (see bug #735509)
* Promote from experimental to unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#ifndef TESSERACT_CCUTIL_PLATFORM_H__
21
21
#define TESSERACT_CCUTIL_PLATFORM_H__
22
22
 
 
23
#include <string.h>
 
24
 
23
25
#define DLLSYM
24
26
#ifdef _WIN32
25
27
#ifdef __GNUC__
26
28
#define ultoa _ultoa
27
 
typedef struct _BLOB {
28
 
  unsigned int cbSize;
29
 
  char *pBlobData;
30
 
} BLOB, *LPBLOB;
31
29
#endif  /* __GNUC__ */
32
30
#define SIGNED
33
31
#define snprintf _snprintf
45
43
#define SIGNED signed
46
44
#endif
47
45
 
 
46
#ifdef _WIN32
 
47
#ifndef M_PI
 
48
#define M_PI 3.14159265358979323846
 
49
#endif
 
50
#endif
 
51
 
48
52
#if defined(_WIN32) || defined(__CYGWIN__)
49
53
    #if defined(TESS_EXPORTS)
50
54
       #define TESS_API __declspec(dllexport)
69
73
    #endif
70
74
#endif
71
75
 
 
76
#if defined(_WIN32) || defined(__CYGWIN__)
 
77
    #define _TESS_FILE_BASENAME_                                            \
 
78
      (strrchr(__FILE__, '\\') ? strrchr(__FILE__, '\\') + 1 : __FILE__)
 
79
#else   // Unices
 
80
    #define _TESS_FILE_BASENAME_                                            \
 
81
      (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__)
 
82
#endif
 
83
 
72
84
#endif  // TESSERACT_CCUTIL_PLATFORM_H__