home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
famapi.zip
/
INCLUDE.ZIP
/
STDDEF.H
< prev
next >
Wrap
C/C++ Source or Header
|
1992-12-19
|
1KB
|
46 lines
//
// *******************************************************************
// JdeBP C++ Library Routines General Public Licence v1.00
// Copyright (c) 1991,1992 Jonathan de Boyne Pollard
// *******************************************************************
//
// STANDARD DEFINITIONS (ANSI) (FREESTANDING)
//
#if !defined(__STDDEF_H_INCLUDED)
#include <_stddef.h>
#endif
#ifndef offsetof
#define offsetof(s, m) ((size_t)&((s *)NULL)->m)
#endif
#define NULL _NULL
#ifndef _PTRDIFF_T_DEFINED
typedef _Ptrdiff_t ptrdiff_t;
#define _PTRDIFF_T_DEFINED
#endif
#ifndef _SIZE_T_DEFINED
typedef _Size_t size_t;
#define _SIZE_T_DEFINED
#endif
#ifndef _WCHAR_T_DEFINED
typedef _Wchar_t wchar_t;
#define _WCHAR_T_DEFINED
#endif
#if _MSDOS_SOURCE > 0
//
// These are logically language extensions, and as such belong here rather
// than in an OS specific header.
//
#define FP_SEG(p) _FP_SEG(p)
#define FP_OFF(p) _FP_OFF(p)
#define MK_FP(s,o) _MK_FP(s,o)
#endif