merge the formfield patch from ooo-build
[ooovba.git] / dmake / stdmacs.h
blob0616b0ef592e73eab34cc7396dd8ea7538ec0a02
1 /* $RCSfile: stdmacs.h,v $
2 -- $Revision: 1.5 $
3 -- last change: $Author: hr $ $Date: 2006-04-20 12:02:29 $
4 --
5 -- SYNOPSIS
6 -- General use macros.
7 --
8 -- DESCRIPTION
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
12 -- argument.
14 -- AUTHOR
15 -- Dennis Vadura, dvadura@dmake.wticorp.com
17 -- WWW
18 -- http://dmake.wticorp.com/
20 -- COPYRIGHT
21 -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved.
22 --
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.
27 -- LOG
28 -- Use cvs log to obtain detailed change logs.
31 #ifndef MACROS_h
32 #define MACROS_h
34 /* AIX and Mac MPW define __STDC__ as special, but defined(__STDC__) is false,
35 * and it has no value. */
36 #ifndef __STDC__
37 #define __STDC__ 0
38 #endif
40 /* MSVC 6 and newer understand ANSI prototypes */
41 #if __STDC__ || defined(__TURBOC__) || defined(__IBMC__) || defined (_MSC_VER)
42 #define ANSI(x) x
43 #else
44 #define ANSI(x) ()
45 #endif
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)
52 #endif
54 #define FALSE 0
55 #define TRUE 1
57 #define PUBLIC
59 #endif