~ubuntu-branches/ubuntu/trusty/gnustep-base/trusty

« back to all changes in this revision

Viewing changes to Source/ObjectiveC2/Availability.h

Tags: upstream-1.20.0
ImportĀ upstreamĀ versionĀ 1.20.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
#ifdef STRICT_MACOS_X
 
3
#  define OBJC_NONPORTABLE __attribute__((error("Function not supported by the Apple runtime")))
 
4
#else
 
5
#  define OBJC_NONPORTABLE
 
6
#endif
 
7
 
 
8
#if !defined(OBJC_DEPRECATED)
 
9
#  if !defined(__DEPRECATE_DIRECT_ACCESS) || defined(__OBJC_LEGACY_GNU_MODE__) || defined(__OBJC_RUNTIME_INTERNAL__)
 
10
#    define OBJC_DEPRECATED
 
11
#  else
 
12
#    if ((__GNUC__ > 3) || (__GNUC__ == 3 && __GNUC_MINOR >= 1))
 
13
#      define OBJC_DEPRECATED __attribute__((deprecated))
 
14
#    else
 
15
#      define OBJC_DEPRECATED
 
16
#    endif
 
17
#  endif
 
18
#endif
 
19