ObjFW  Check-in [66db4586f7]

Overview
Comment:Fix __has_feature check.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 66db4586f70e327a7d1aaaaa5abda386edd9306f0e895a20cc4721a17b494c89
User & Date: js on 2012-04-21 11:02:10
Other Links: manifest | tags
Context
2012-04-25
09:15
objfw-compile: Allow -std=*. check-in: 74f283ce2a user: js tags: trunk
2012-04-21
11:31
Merge branch 'master' into runtime check-in: 676e09bf77 user: js tags: runtime
11:02
Fix __has_feature check. check-in: 66db4586f7 user: js tags: trunk
10:30
Use __objc_yes and __objc_no if available. check-in: e571ecccc0 user: js tags: trunk
Changes

Modified src/OFObject.h from [5bb4fe2eb8] to [34ca0c3322].

29
30
31
32
33
34
35

36
37
38
39
40






41
42
43
44
45
46
47
29
30
31
32
33
34
35
36





37
38
39
40
41
42
43
44
45
46
47
48
49







+
-
-
-
-
-
+
+
+
+
+
+








#ifdef OF_OBJFW_RUNTIME
# import <objfw-rt.h>
#else
# import <objc/objc.h>
#endif

#ifdef __has_feature
#if defined(__has_feature) && __has_feature(objc_bool)
# undef YES
# define YES __objc_yes
# undef NO
# define NO __objc_no
# if __has_feature(objc_bool)
#  undef YES
#  define YES __objc_yes
#  undef NO
#  define NO __objc_no
# endif
#endif

#define OF_RETAIN_COUNT_MAX UINT_MAX
#define OF_INVALID_INDEX SIZE_MAX

/**
 * \brief A result of a comparison.