#ifndef _MSL_CSTDDEF_H_
#define _MSL_CSTDDEF_H_

#ifdef __cplusplus
extern "C" {
#endif

#ifdef __MWERKS__
#define offsetof(type, member) ((size_t) & (((type *)0)->member))
#else
#define offsetof(type, member) __builtin_offsetof(type, member)
#endif

#ifndef NULL
#define NULL 0
#endif

typedef unsigned long size_t;
typedef long ptrdiff_t;

#ifndef __cplusplus
typedef unsigned short wchar_t;
#endif

#ifdef __cplusplus
};
#endif

#endif
