Unverified Commit ab51ae85 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

require C++11 to compile LAMMPS

parent a972850b
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -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