forked from lijiext/lammps
require C++11 to compile LAMMPS
This commit is contained in:
parent
a972850b39
commit
ab51ae854e
|
@ -28,6 +28,12 @@
|
|||
#ifndef LMP_LMPTYPE_H
|
||||
#define LMP_LMPTYPE_H
|
||||
|
||||
// C++11 check
|
||||
|
||||
#if __cplusplus < 201103L
|
||||
#error LAMMPS requires a C++11 (or later) compliant compiler. Enable C++11 compatibility or upgrade the compiler.
|
||||
#endif
|
||||
|
||||
#ifndef __STDC_LIMIT_MACROS
|
||||
#define __STDC_LIMIT_MACROS
|
||||
#endif
|
||||
|
@ -38,8 +44,8 @@
|
|||
|
||||
#include <climits>
|
||||
#include <cstdlib>
|
||||
#include <stdint.h> // <cstdint> requires C++-11
|
||||
#include <inttypes.h> // <cinttypes> requires C++-11
|
||||
#include <cstdint>
|
||||
#include <cinttypes>
|
||||
|
||||
// grrr - IBM Power6 does not provide this def in their system header files
|
||||
|
||||
|
|
Loading…
Reference in New Issue