forked from osxfuse/framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GMAvailability.h
41 lines (30 loc) · 1.01 KB
/
GMAvailability.h
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
//
// GMAvailability.h
// OSXFUSE
//
// Copyright (c) 2016 Benjamin Fleischer.
// All rights reserved.
#define GM_OSXFUSE_2_0 020000
#define GM_OSXFUSE_3_0 030000
#define GM_OSXFUSE_3_5 030500
#ifdef GM_VERSION_MIN_REQUIRED
#define GM_AVAILABILITY_WEAK __attribute__((weak_import))
#if GM_VERSION_MIN_REQUIRED < GM_OSXFUSE_2
#define GM_AVAILABILITY_INTERNAL__2_0 GM_AVAILABILITY_WEAK
#else
#define GM_AVAILABILITY_INTERNAL__2_0
#endif
#if GM_VERSION_MIN_REQUIRED < GM_OSXFUSE_3_0
#define GM_AVAILABILITY_INTERNAL__3_0 GM_AVAILABILITY_WEAK
#else
#define GM_AVAILABILITY_INTERNAL__3_0
#endif
#if GM_VERSION_MIN_REQUIRED < GM_OSXFUSE_3_5
#define GM_AVAILABILITY_INTERNAL__3_5 GM_AVAILABILITY_WEAK
#else
#define GM_AVAILABILITY_INTERNAL__3_5
#endif
#define GM_AVAILABLE(_version) GM_AVAILABILITY_INTERNAL__##_version
#else /* !GM_VERSION_MIN_REQUIRED */
#define GM_AVAILABLE(_version)
#endif /* !GM_VERSION_MIN_REQUIRED */