make has_XXX_support functions static, so they can be called without having to create an instance of Info, which requires a fully instantiation of the LAMMPS and Pointers classes

This commit is contained in:
Axel Kohlmeyer
2018-06-22 06:57:05 -04:00
parent 7da8e69b45
commit 80cca7c4c1
2 changed files with 10 additions and 10 deletions

View File

@ -1143,7 +1143,7 @@ static void print_columns(FILE* fp, vector<string> & styles)
}
}
bool Info::has_gzip_support() const {
bool Info::has_gzip_support() {
#ifdef LAMMPS_GZIP
return true;
#else
@ -1151,7 +1151,7 @@ bool Info::has_gzip_support() const {
#endif
}
bool Info::has_png_support() const {
bool Info::has_png_support() {
#ifdef LAMMPS_PNG
return true;
#else
@ -1159,7 +1159,7 @@ bool Info::has_png_support() const {
#endif
}
bool Info::has_jpeg_support() const {
bool Info::has_jpeg_support() {
#ifdef LAMMPS_JPEG
return true;
#else
@ -1167,7 +1167,7 @@ bool Info::has_jpeg_support() const {
#endif
}
bool Info::has_ffmpeg_support() const {
bool Info::has_ffmpeg_support() {
#ifdef LAMMPS_FFMPEG
return true;
#else
@ -1175,7 +1175,7 @@ bool Info::has_ffmpeg_support() const {
#endif
}
bool Info::has_exceptions() const {
bool Info::has_exceptions() {
#ifdef LAMMPS_EXCEPTIONS
return true;
#else