1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

On linux no generic.h available, and can use the C++ style delete array

This commit is contained in:
Peter Howkins 2012-03-11 18:16:10 +00:00
parent 67affa6f31
commit d0dc9dbe86

View file

@ -36,8 +36,10 @@
#ifndef __DYNARRAY_H_ #ifndef __DYNARRAY_H_
#define __DYNARRAY_H_ #define __DYNARRAY_H_
#if !defined(linux)
#include <generic.h> #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[] #define _DELETE_ARRAY(sz) delete[]
#else #else
#define _DELETE_ARRAY(sz) delete[(sz)] #define _DELETE_ARRAY(sz) delete[(sz)]