Subversion Repositories Kolibri OS

Rev

Rev 1970 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1765 clevermous 1
#ifndef __LINUX_COMPILER_H
2
#error "Please don't include  directly, include  instead."
3
#endif
4
 
3480 Serge 5
#if GCC_VERSION < 30200
1765 clevermous 6
# error Sorry, your compiler is too old - please upgrade it.
7
#endif
8
 
3480 Serge 9
#if GCC_VERSION >= 30300
1765 clevermous 10
# define __used                 __attribute__((__used__))
11
#else
12
# define __used                 __attribute__((__unused__))
13
#endif
14
 
3480 Serge 15
#if GCC_VERSION >= 30400
1765 clevermous 16
#define __must_check            __attribute__((warn_unused_result))
17
#endif
18
 
19
#ifdef CONFIG_GCOV_KERNEL
3480 Serge 20
# if GCC_VERSION < 30400
1765 clevermous 21
#   error "GCOV profiling support for gcc versions below 3.4 not included"
22
# endif /* __GNUC_MINOR__ */
23
#endif /* CONFIG_GCOV_KERNEL */