File: TestGlibcVersion.cpp

package info (click to toggle)
gromacs 2026.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 274,304 kB
  • sloc: xml: 3,831,921; cpp: 686,728; ansic: 75,300; python: 21,171; sh: 3,553; perl: 2,246; yacc: 644; fortran: 397; lisp: 265; makefile: 179; lex: 125; awk: 68; csh: 39
file content (11 lines) | stat: -rw-r--r-- 252 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
#include <features.h>

int main()
{
    // This compiles if the C++ compiler is using glibc with version 2.23+
#if (__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 23)
    return 0;
#else
#error A glibc version prior to 2.23 was found
#endif
}