require C++11 to compile LAMMPS

This commit is contained in:
Axel Kohlmeyer 2020-03-04 14:28:47 -05:00
parent a972850b39
commit ab51ae854e
No known key found for this signature in database
GPG Key ID: D9B44E93BF0C375A
1 changed files with 8 additions and 2 deletions

View File

@ -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