Improve stability of ContinuationIsExact tests
[alexxy/gromacs.git] / cmake / TestGlibcVersion.cpp
1 #include <features.h>
2
3 int main()
4 {
5     // This compiles if the C++ compiler is using glibc with version 2.23+
6 #if (__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 23)
7     return 0;
8 #else
9 #error A glibc version prior to 2.23 was found
10 #endif
11 }