/**************************************************************************
*   Copyright 2000 Compaq Computer Corporation
*
*   COMPAQ Registered in U.S. Patent and Trademark Office.
*
*   Confidential computer software. Valid license from Compaq or authorized
*   sublicensor required for possession, use or copying. Consistent with
*   FAR 12.211 and 12.212, Commercial Computer Software, Computer Software
*   Documentation, and Technical Data for Commercial Items are licensed to
*   the U.S. Government under vendor's standard commercial license.
**************************************************************************/

#ifndef _STDDEF_H_ 
#define _STDDEF_H_ 
extern "C" {
namespace std {

typedef long             ptrdiff_t;

typedef unsigned long   size_t;

}   /* namespace std */
}   /* extern "C"    */

#if defined(__linux__)
#define NULL    0
#else
#define NULL    0L
#endif  /* __linux__ */

#define offsetof(s_name, s_member) \
        ((size_t)((char *)&((s_name *)0L)->s_member - (char *)0L))

#endif /* _STDDEF_H_ */
