/*
	Copyright 06/10/99 Sun Microsystems, Inc. All Rights Reserved
*/

#ifndef _STDDEF_ISO_SUNWCC_H
#define _STDDEF_ISO_SUNWCC_H

#pragma ident "@(#)stddef_iso_SUNWCC.h	1.2  06/10/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) (size_t)(&(((s *)0)->m))

#endif /* _STDDEF_ISO_SUNWCC_H */
