/*
	Copyright 03/04/03 Sun Microsystems, Inc. All Rights Reserved
*/

#ifndef _STDDEF_ISO_SUNWCC_H
#define _STDDEF_ISO_SUNWCC_H

#pragma ident "@(#)stddef_iso_SUNWCC.h	1.4  03/04/03 C++5.0"

#ifndef NULL
  #if defined(_LP64)
    #define	NULL	0L
  #else
    #define	NULL	0
  #endif
#endif

extern "C" {

namespace std {

  #if defined(_LP64) || defined(_I32LPx)
    typedef long ptrdiff_t;
  #else
    typedef int  ptrdiff_t;
  #endif

  #if defined(_LP64) || defined(_I32LPx)
    typedef unsigned long size_t;
  #else
    typedef unsigned int  size_t;
  #endif

} /* end of namespace std */

} /* end of extern "C" */

#define offsetof(s, m) (std::size_t)(&(((s *)0)->m))

#endif /* _STDDEF_ISO_SUNWCC_H */
