]> git.lyx.org Git - lyx.git/blob - src/support/checktr1.h
TR1: check in cmake for GCC version, fallback in checktr1.h for other build systems...
[lyx.git] / src / support / checktr1.h
1 // -*- C++ -*-
2 /**
3  * \file checktr1.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Peter Kümmel
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef LYX_CHECKTR1_H
13 #define LYX_CHECKTR1_H
14
15 #ifndef LYX_USE_TR1 // When not set by the build system
16
17 #if defined(_MSC_VER) && (_MSC_VER >= 1600)
18 #define LYX_USE_TR1
19 #endif
20
21 #if __GNUC__ == 4 && __GNUC_MINOR__ >= 4
22 #define LYX_USE_TR1
23 #endif
24
25 #endif
26
27
28 #endif