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

#ifndef _STDDEF_ISO_SUNWCC_H
#define _STDDEF_ISO_SUNWCC_H

#pragma ident "@(#)stddef_iso_SUNWCC.h	1.3  08/04/99 C++5.0"

#ifndef NULL
#define NULL    0
#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 */
