From 80cca7c4c186e34febf833d107a951fc90b93be2 Mon Sep 17 00:00:00 2001
From: Axel Kohlmeyer <akohlmey@gmail.com>
Date: Fri, 22 Jun 2018 06:57:05 -0400
Subject: [PATCH] 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

---
 src/info.cpp | 10 +++++-----
 src/info.h   | 10 +++++-----
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/src/info.cpp b/src/info.cpp
index 0d11836826..a053e2af60 100644
--- a/src/info.cpp
+++ b/src/info.cpp
@@ -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
diff --git a/src/info.h b/src/info.h
index fb7ca58c47..7d267f6242 100644
--- a/src/info.h
+++ b/src/info.h
@@ -33,11 +33,11 @@ class Info : protected Pointers {
   bool is_defined(const char *, const char *);
   bool is_available(const char *, const char *);
 
-  bool has_gzip_support() const;
-  bool has_png_support() const;
-  bool has_jpeg_support() const;
-  bool has_ffmpeg_support() const;
-  bool has_exceptions() const;
+  static bool has_gzip_support();
+  static bool has_png_support();
+  static bool has_jpeg_support();
+  static bool has_ffmpeg_support();
+  static bool has_exceptions();
 
   char **get_variable_names(int &num);
 
-- 
GitLab