1 /* $RCSfile: stdmacs.h,v $
3 -- last change: $Author: hr $ $Date: 2006-04-20 12:02:29 $
9 -- ANSI macro relies on the fact that it can be replaced by (), or by
10 -- its value, where the value is one value due to the preprocessors
11 -- handling of arguments that are surrounded by ()'s as a single
15 -- Dennis Vadura, dvadura@dmake.wticorp.com
18 -- http://dmake.wticorp.com/
21 -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved.
23 -- This program is NOT free software; you can redistribute it and/or
24 -- modify it under the terms of the Software License Agreement Provided
25 -- in the file <distribution-root>/readme/license.txt.
28 -- Use cvs log to obtain detailed change logs.
34 /* AIX and Mac MPW define __STDC__ as special, but defined(__STDC__) is false,
35 * and it has no value. */
40 /* MSVC 6 and newer understand ANSI prototypes */
41 #if __STDC__ || defined(__TURBOC__) || defined(__IBMC__) || defined (_MSC_VER)
47 #define NIL(p) ((p*)NULL)
49 /* Cygwin defines _STDDEF_H with only one leading '_' */
50 #if !defined(atarist) && !defined(__STDDEF_H) && !defined(_STDDEF_H)
51 #define offsetof(type,id) ((size_t)&((type*)NULL)->id)