diff --git a/src/pefile.cpp b/src/pefile.cpp index 78700ff1..b2db65a4 100644 --- a/src/pefile.cpp +++ b/src/pefile.cpp @@ -39,7 +39,6 @@ // **************************************************************************/ -#include "util/bptr.h" #if (WITH_SPAN >= 2) && 1 //#define IPTR(type, var) Span var(ibuf, ibuf.getSize(), ibuf) //#define OPTR(type, var) Span var(obuf, obuf.getSize(), obuf) @@ -49,6 +48,7 @@ #define IPTR_C(type, var, first) const Span var(first, ibuf) #define OPTR_C(type, var, first) const Span var(first, obuf) #else +#include "util/bptr.h" //#define IPTR(type, var) BoundedPtr var(ibuf, ibuf.getSize()) //#define OPTR(type, var) BoundedPtr var(obuf, obuf.getSize()) #define IPTR_I_D(type, var, disp) BoundedPtr var(ibuf + (disp), ibuf.getSize() - (disp), ibuf + (disp)) diff --git a/src/util/bptr.h b/src/util/bptr.h index 0a3faace..4a4288ab 100644 --- a/src/util/bptr.h +++ b/src/util/bptr.h @@ -29,9 +29,10 @@ #ifndef UPX_BPTR_H__ #define UPX_BPTR_H__ 1 +#error "this file is deprecated, please use xspan.h instead" + /************************************************************************* // BoundedPtr -// (deprecated, use xspan.h instead) **************************************************************************/ template