summaryrefslogtreecommitdiff
path: root/vendor/nunicode/include/libnu/defines.h
blob: 2678013f949683b7e3c1c6f06ac665e554ada835 (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
#ifndef NU_DEFINES_H
#define NU_DEFINES_H

/** @file
 */

/** @defgroup defines Defines
 */

#ifndef NU_EXPORT

# ifdef _WIN32
#  define NU_EXPORT __declspec(dllexport)

# elif __GNUC__ >= 4
#  ifdef NU_BUILD_STATIC
#   define NU_EXPORT __attribute__ ((visibility ("hidden")))
#  else
#   define NU_EXPORT __attribute__ ((visibility ("default")))
#  endif

# else
#  define NU_EXPORT
# endif

#endif /* NU_EXPORT */

/** Integer version of Unicode specification implemented. 900 == 9.0.0
 *
 * @ingroup defines
 */
#define NU_UNICODE_VERSION 1000
/** Special limit value to unset limit on string. Used internally by nunicode.
 *
 * @ingroup defines
 */
#define NU_UNLIMITED ((const void *)(-1))

#ifdef _MSC_VER
#define ssize_t ptrdiff_t
#endif

#endif /* NU_DEFINES_H */