5 #ifndef BALL_COMMON_GLOBAL_H
6 #define BALL_COMMON_GLOBAL_H
8 #ifndef BALL_CONFIG_CONFIG_H
9 # include <BALL/CONFIG/config.h>
15 #ifdef BALL_HAS_BASETSD_H
21 #ifdef BALL_HAS_STDINT_H
25 #ifdef BALL_COMPILER_MSVC
27 # ifdef BALL_BUILD_DLL
28 # define BALL_EXPORT __declspec(dllexport)
29 # define BALL_EXTERN_VARIABLE __declspec(dllexport) extern
31 # define BALL_EXPORT __declspec(dllimport)
32 # define BALL_EXTERN_VARIABLE __declspec(dllimport) extern
34 # ifdef BALL_VIEW_BUILD_DLL
35 # define BALL_VIEW_EXPORT __declspec(dllexport)
37 # define BALL_VIEW_EXPORT __declspec(dllimport)
39 #elif defined(BALL_COMPILER_GXX) && (BALL_COMPILER_VERSION_MAJOR > 4 || (BALL_COMPILER_VERSION_MAJOR == 4 && BALL_COMPILER_VERSION_MINOR >= 3))
40 # define BALL_EXPORT __attribute__((visibility ("default")))
41 # define BALL_HIDE __attribute__((visibility ("hidden")))
42 # define BALL_VIEW_EXPORT __attribute__((visibility ("default")))
43 # define BALL_EXTERN_VARIABLE extern __attribute__((visibility ("default")))
44 # elif defined(BALL_COMPILER_LLVM)
45 # define BALL_EXPORT __attribute__((visibility ("default")))
46 # define BALL_HIDE __attribute__((visibility ("hidden")))
47 # define BALL_VIEW_EXPORT __attribute__((visibility ("default")))
48 # define BALL_EXTERN_VARIABLE extern __attribute__((visibility ("default")))
52 # define BALL_VIEW_EXPORT
53 # define BALL_EXTERN_VARIABLE extern
59 #if defined(BALL_COMPILER_MSVC) && (_MSC_VER >= 1300)
60 #define BALL_DEPRECATED __declspec(deprecated)
61 #elif defined(BALL_COMPILER_GXX) && (BALL_COMPILER_VERSION_MAJOR - 0 > 3 || (BALL_COMPILER_VERSION_MAJOR - 0 == 3 && BALL_COMPILER_VERSION_MINOR - 0 >= 2))
62 #define BALL_DEPRECATED __attribute__((deprecated))
63 #elif defined(BALL_COMPILER_LLVM)
64 #define BALL_DEPRECATED __attribute__((deprecated))
66 #define BALL_DEPRECATED
257 #endif // BALL_COMMON_GLOBAL_H
static const Index INDEX_MIN
BALL_POINTERSIZEUINT_TYPE PointerSizeUInt
int(* ComparatorType)(const void *, const void *)
static const Size SIZE_MIN
static const Position POSITION_MAX
static const Distance INVALID_DISTANCE
static const Size SIZE_MAX
BALL_INDEX_TYPE ErrorCode
static const Distance DISTANCE_MIN
static const Distance DISTANCE_MAX
T max(const T &a, const T &b)
static const Position POSITION_MIN
BALL_ULONG64_TYPE LongSize
static const Handle HANDLE_MAX
static const Position INVALID_POSITION
BALL_LONG64_TYPE LongIndex
static const Index INDEX_MAX
static const Handle INVALID_HANDLE
static const Size INVALID_SIZE
static const Handle HANDLE_MIN
T min(const T &a, const T &b)
static const Index INVALID_INDEX