blob: efe7f1e759a423b19d61eadcbda60600ede14111 [file] [log] [blame]
Guido van Rossum7a5f4201999-01-12 20:30:23 +00001#ifndef BEOS_DL_EXPORT_H
2#define BEOS_DL_EXPORT_H
3
4/* There are no declarations here, so no #ifdef __cplusplus...
5 *
6 * This is the nasty declaration decorations required by certain systems
7 * (in our case, BeOS) for dynamic object loading.
8 *
9 * This trivial header is released under the same license as the rest of
10 * Python:
11 *
12 * Permission to use, copy, modify, and distribute this software and its
13 * documentation for any purpose and without fee is hereby granted,
14 * provided that the above copyright notice appear in all copies and that
15 * both that copyright notice and this permission notice appear in
16 * supporting documentation, and that the names of Stichting Mathematisch
17 * Centrum or CWI or Corporation for National Research Initiatives or
18 * CNRI not be used in advertising or publicity pertaining to
19 * distribution of the software without specific, written prior
20 * permission.
21 *
22 * While CWI is the initial source for this software, a modified version
23 * is made available by the Corporation for National Research Initiatives
24 * (CNRI) at the Internet address ftp://ftp.python.org.
25 *
26 * STICHTING MATHEMATISCH CENTRUM AND CNRI DISCLAIM ALL WARRANTIES WITH
27 * REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF
28 * MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH
29 * CENTRUM OR CNRI BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
30 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
31 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
32 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
33 * PERFORMANCE OF THIS SOFTWARE.
34 *
35 * - Chris Herborth (chrish@beoscentral.com)
36 * January 11, 1999
37 */
38
39#ifndef DL_EXPORT
40# define DL_EXPORT(RTYPE) __declspec(dllexport) RTYPE
41#endif
42#ifndef DL_IMPORT
43# ifdef USE_DL_EXPORT
44# define DL_IMPORT(RTYPE) __declspec(dllexport) RTYPE
45# else
46# define DL_IMPORT(RTYPE) __declspec(dllimport) RTYPE
47# endif
48#endif
49
50#endif