fdo#61256 - the Get.*Export methods also create and register styles
[LibreOffice.git] / dmake / stdmacs.h
blobb0eed50d6143d37ad822387fcc117abc3a3c268e
1 /*
2 --
3 -- SYNOPSIS
4 -- General use macros.
5 --
6 -- DESCRIPTION
7 -- ANSI macro relies on the fact that it can be replaced by (), or by
8 -- its value, where the value is one value due to the preprocessors
9 -- handling of arguments that are surrounded by ()'s as a single
10 -- argument.
12 -- AUTHOR
13 -- Dennis Vadura, dvadura@dmake.wticorp.com
15 -- WWW
16 -- http://dmake.wticorp.com/
18 -- COPYRIGHT
19 -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved.
21 -- This program is NOT free software; you can redistribute it and/or
22 -- modify it under the terms of the Software License Agreement Provided
23 -- in the file <distribution-root>/readme/license.txt.
25 -- LOG
26 -- Use cvs log to obtain detailed change logs.
29 #ifndef MACROS_h
30 #define MACROS_h
32 /* AIX and Mac MPW define __STDC__ as special, but defined(__STDC__) is false,
33 * and it has no value. */
34 #ifndef __STDC__
35 #define __STDC__ 0
36 #endif
38 /* MSVC 6 and newer understand ANSI prototypes */
39 #if __STDC__ || defined(__TURBOC__) || defined(__IBMC__) || defined (_MSC_VER)
40 #define ANSI(x) x
41 #else
42 #define ANSI(x) ()
43 #endif
45 #define NIL(p) ((p*)NULL)
47 /* Cygwin defines _STDDEF_H with only one leading '_' */
48 #if !defined(atarist) && !defined(__STDDEF_H) && !defined(_STDDEF_H)
49 #define offsetof(type,id) ((size_t)&((type*)NULL)->id)
50 #endif
52 #define FALSE 0
53 #define TRUE 1
55 #define PUBLIC
57 #endif