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:
Cary R 2010-06-01 11:39:47 -07:00 committed by Stephen Williams
parent c6465f4485
commit ddf5748b48
2 changed files with 11 additions and 1 deletions

View File

@ -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 {

View File

@ -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;