summaryrefslogtreecommitdiff
path: root/fribidi_config.h.in
blob: 79aceb16894348d9adc026adfe913624a153b7cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55

#define FRIBIDI_PACKAGE "@PACKAGE@"

#define FRIBIDI_VERSION "@FRIBIDI_VERSION@"
#define FRIBIDI_MAJOR_VERSION @FRIBIDI_MAJOR_VERSION@
#define FRIBIDI_MINOR_VERSION @FRIBIDI_MINOR_VERSION@
#define FRIBIDI_MICRO_VERSION @FRIBIDI_MICRO_VERSION@
#define FRIBIDI_INTERFACE_VERSION @FRIBIDI_INTERFACE_VERSION@

#if @FRIBIDI_NO_CHARSETS@ /* FRIBIDI_NO_CHARSETS */
#define FRIBIDI_NO_CHARSETS 1
#else /* NOT FRIBIDI_NO_CHARSETS */
#undef FRIBIDI_NO_CHARSETS
#endif /* FRIBIDI_NO_CHARSETS */

#define TOSTR(x) #x

#ifdef WIN32

#ifdef FRIBIDI_EXPORTS
#define FRIBIDI_API __declspec(dllexport)
#else
#define FRIBIDI_API __declspec(dllimport)
#endif

#define snprintf _snprintf

#else /* NOT WIN32 */

#define FRIBIDI_API

#endif /* WIN32 */

/* __BEGIN_DECLS should be used at the beginning of your declarations,
 * so that C++ compilers don't mangle their names.  Use __END_DECLS at
 * the end of C declarations. */
#undef __BEGIN_DECLS
#undef __END_DECLS
#ifdef __cplusplus
#define __BEGIN_DECLS extern "C" {
#define __END_DECLS }
#else /* NOT __cplusplus */
#define __BEGIN_DECLS		/* empty */
#define __END_DECLS		/* empty */
#endif /* __cplusplus */

#define FRIBIDI_TRUE    1
#define FRIBIDI_FALSE   0

#ifndef TRUE
#define TRUE FRIBIDI_TRUE
#endif /* TRUE */
#ifndef FALSE
#define FALSE FRIBIDI_FALSE
#endif /* FALSE */