X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FBuffer.hh;h=6ce84a60f7c5cbdd956e6823921e45f9e5554728;hb=81447258e6ecc9b5d9434fa5a7d382684179c7ab;hp=7cf96262dc9ff462d3f9b10991a01da26646a3e2;hpb=ced8f321adf904c31149162de5f6258c971c7466;p=senf.git diff --git a/Utils/Buffer.hh b/Utils/Buffer.hh index 7cf9626..6ce84a6 100644 --- a/Utils/Buffer.hh +++ b/Utils/Buffer.hh @@ -27,31 +27,11 @@ #define HH_Buffer_ 1 // Custom includes +#include "../config.hh" //#include "Buffer.mpp" ///////////////////////////////hh.p//////////////////////////////////////// -#if !defined(SENF_BUFFER_USE_LOCALS) && !defined(SENF_BUFFER_USE_ALLOCA) && !defined(SENF_BUFFER_USE_NEW) -# -# -# if defined(__GNUC__) -# define SENF_BUFFER_USE_LOCALS 1 -# -# // Add other compilers here ... -# -# // dynamic arrays are part of C99. Which is NOT part of C++ -# // but lets try nonetheless ... -# elif defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L -# define SENF_BUFFER_USE_LOCALS 1 -# -# endif -# -# if !defined(SENF_BUFFER_USE_LOCALS) && !defined(SENF_BUFFER_USE_ALLOCA) -# define SENF_BUFFER_USE_NEW 1 -# endif -# -#endif - #if defined(SENF_BUFFER_USE_LOCALS) # define SENF_SCOPED_BUFFER(type, sym, size) \ @@ -78,7 +58,7 @@ either pointer to \a type or array of \a type: \code - #include "Utils/Buffer.hh" + #include "../Utils/Buffer.hh" void foo(std::string const & str) {