--- a/src/image.cpp
+++ b/src/image.cpp
@@ -38,6 +38,10 @@
 #include <csetjmp>
 #include "version.h"
 #endif
+
+#ifdef ABSOLUTE
+#undef ABSOLUTE
+#endif
 
 using namespace LAMMPS_NS;
 using MathConst::DEG2RAD;
