X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=blobdiff_plain;f=src%2Fgromacs%2Fgmxlib%2Fgmx_cpuid.c;h=3ea2d42c4032442e9afbc324c83be739edec9689;hb=2c8e4fac688f51c7b779c13a542f4700a221715d;hp=18109192d9cd1410f7b4119f83aa4e6c1bd2089a;hpb=6d1bc0a87809729252a3e706b6ff24c9df35c57f;p=alexxy%2Fgromacs.git diff --git a/src/gromacs/gmxlib/gmx_cpuid.c b/src/gromacs/gmxlib/gmx_cpuid.c index 18109192d9..3ea2d42c40 100644 --- a/src/gromacs/gmxlib/gmx_cpuid.c +++ b/src/gromacs/gmxlib/gmx_cpuid.c @@ -34,21 +34,17 @@ */ #include "gmxpre.h" +#include "gromacs/legacyheaders/gmx_cpuid.h" + #ifdef HAVE_CONFIG_H #include "config.h" #endif -#ifdef HAVE_SCHED_H -# ifndef _GNU_SOURCE -# define _GNU_SOURCE 1 -# endif -# include -#endif - #include #include #include #include + #ifdef GMX_NATIVE_WINDOWS /* MSVC definition for __cpuid() */ #ifdef _MSC_VER @@ -57,14 +53,14 @@ /* sysinfo functions */ #include #endif +#ifdef HAVE_SCHED_H + #include +#endif #ifdef HAVE_UNISTD_H /* sysconf() definition */ #include #endif -#include "gromacs/legacyheaders/gmx_cpuid.h" - - /* For convenience, and to enable configure-time invocation, we keep all architectures * in a single file, but to avoid repeated ifdefs we set the overall architecture here.