X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=blobdiff_plain;f=src%2Fgmxpre.h;h=0573e37a11a77bbaf7147b63d6c47920f42016ab;hb=22fcfd13dde2ce31faf8b38b4de078756aa2e124;hp=3ae077ecb3fe7247b03ad71fb154a0d4d8115aca;hpb=fb588bd4563b5e2f67be41127b50cdec8f7afe13;p=alexxy%2Fgromacs.git diff --git a/src/gmxpre.h b/src/gmxpre.h index 3ae077ecb3..0573e37a11 100644 --- a/src/gmxpre.h +++ b/src/gmxpre.h @@ -71,6 +71,20 @@ #define _GNU_SOURCE 1 #endif +/* Some C++(?) compilers require these to be defined to get the integer limits + * and format specifier macros from stdint.h and inttypes.h, respectively. + * The macros are in C99 and C++11, but not in C++98... + * As with _GNU_SOURCE, these need to be defined before these headers get first + * included. Unlike _GNU_SOURCE, these headers are included indirectly in most + * header and source files (even though the macros are not used that often), so + * there is no easy alternative to defining them here, either. + * If someone happens to use such a compiler to compile against the installed + * Gromacs headers, they need for now take care to define the macros themselves + * (as there is no way Gromacs can do that consistently). + */ +#define __STDC_LIMIT_MACROS +#define __STDC_FORMAT_MACROS + #ifdef GMX_FAHCORE #define FULLINDIRECT 1 #define USE_FAH_XDR 1