Work around a bug in the SunPro C++ compiler.
This patch works around a bug in the current SunPro C++ compiler. It does not define size_t in <cstddef>.
This commit is contained in:
parent
c6465f4485
commit
ddf5748b48
|
|
@ -19,7 +19,12 @@
|
||||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
# include <cstdlib>
|
// The SunPro C++ compiler is broken and does not define size_t in cstddef.
|
||||||
|
#ifdef __SUNPRO_CC
|
||||||
|
# include <stddef.h>
|
||||||
|
#else
|
||||||
|
# include <cstddef>
|
||||||
|
#endif
|
||||||
|
|
||||||
class permaheap {
|
class permaheap {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,12 @@
|
||||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// The SunPro C++ compiler is broken and does not define size_t in cstddef.
|
||||||
|
#ifdef __SUNPRO_CC
|
||||||
|
# include <stddef.h>
|
||||||
|
#else
|
||||||
# include <cstddef>
|
# include <cstddef>
|
||||||
|
#endif
|
||||||
|
|
||||||
extern unsigned long count_opcodes;
|
extern unsigned long count_opcodes;
|
||||||
extern unsigned long count_functors;
|
extern unsigned long count_functors;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue