On linux no generic.h available, and can use the C++ style delete array
authorPeter Howkins <flibble@users.sourceforge.net>
Sun, 11 Mar 2012 18:16:10 +0000 (18:16 +0000)
committerPeter Howkins <flibble@users.sourceforge.net>
Sun, 11 Mar 2012 18:16:10 +0000 (18:16 +0000)
cde/lib/DtSvc/include/codelibs/dynarray.h

index cab6e2923378acdf0372bed518e4d8c42a89d9ac..8c2e88c0bbbfaaacc22279a3eef2aaf68a104ee4 100644 (file)
 #ifndef __DYNARRAY_H_
 #define __DYNARRAY_H_
 
+#if !defined(linux)
 #include <generic.h>
-#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)]