diff --git a/src/info.cpp b/src/info.cpp
index 0d11836826aa21263d70f4e095a77462f4d7915b..a053e2af60b3a20b673425f6d336e8b75a04e5d2 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 fb7ca58c4711dede0b0475114b59419762dbe880..7d267f62427a5addd378a41f03defec954d729f7 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);