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:
parent
67affa6f31
commit
d0dc9dbe86
1 changed files with 3 additions and 1 deletions
|
@ -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)]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue