From: Peter Howkins Date: Sun, 11 Mar 2012 18:16:10 +0000 (+0000) Subject: On linux no generic.h available, and can use the C++ style delete array X-Git-Tag: 2.2.0a~26^2~144 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d0dc9dbe86135f8de8bd990b55ab8430df5083d2;p=oweals%2Fcde.git On linux no generic.h available, and can use the C++ style delete array --- diff --git a/cde/lib/DtSvc/include/codelibs/dynarray.h b/cde/lib/DtSvc/include/codelibs/dynarray.h index cab6e292..8c2e88c0 100644 --- a/cde/lib/DtSvc/include/codelibs/dynarray.h +++ b/cde/lib/DtSvc/include/codelibs/dynarray.h @@ -36,8 +36,10 @@ #ifndef __DYNARRAY_H_ #define __DYNARRAY_H_ +#if !defined(linux) #include -#if defined(USL) || defined(__uxp__) || defined(__osf__) || defined(sun) +#endif +#if defined(USL) || defined(__uxp__) || defined(__osf__) || defined(sun) || defined(linux) #define _DELETE_ARRAY(sz) delete[] #else #define _DELETE_ARRAY(sz) delete[(sz)]