remove \r
[extl.git] / extl / platform_ / unix / config / support.h
blob318a318ca1b86b12879b11036923d574f8fe37a7
1 /* ///////////////////////////////////////////////////////////////////////
2 * File: support.h
4 * Created: 08.06.26
5 * Updated: 08.11.09
7 * Brief: compiler support
9 * [<Home>]
10 * Copyright (c) 2008-2020, Waruqi All rights reserved.
11 * //////////////////////////////////////////////////////////////////// */
13 #ifndef EXTL_PLATFORM_UNIX_SUPPORT_H
14 #define EXTL_PLATFORM_UNIX_SUPPORT_H
16 #ifndef EXTL_PLATFORM_UNIX_CONFIG_H
17 # error This file must be included of extl\platform\unix\config\config.h
18 #endif
20 #ifdef EXTL_UNIX_NO_SUPPORT
21 # undef EXTL_UNIX_NO_SUPPORT
22 #endif
24 /* compiler support */
25 #if defined(EXTL_PLATFORM_IS_UNIX)
27 # if defined(EXTL_COMPILER_IS_GCC)
28 # if __GNUC__ < 2 || \
29 ( __GNUC__ == 2 && \
30 __GNUC_MINOR__ < 95)
31 # define EXTL_UNIX_NO_SUPPORT
32 # endif
34 # elif defined(EXTL_COMPILER_IS_INTEL)
35 # if (__INTEL_COMPILER < 700)
36 # define EXTL_UNIX_NO_SUPPORT
37 # endif
39 # else
40 # error Currently only GNU C++, Intel C/C++ compilers are supported by the Unix.
41 # endif
43 #else
44 # error This file is not supported by unix platform.
45 #endif
47 /* //////////////////////////////////////////////////////////////////// */
48 #endif /* EXTL_PLATFORM_UNIX_SUPPORT_H */
49 /* //////////////////////////////////////////////////////////////////// */