blob: 5c1af8de6bdaa728b3e42a0b00c1b4ad1bf4f248 [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
Guido van Rossum85869912000-09-01 23:29:29 +000010 * Python.
Guido van Rossum7a5f4201999-01-12 20:30:23 +000011 *
12 * - Chris Herborth (chrish@beoscentral.com)
13 * January 11, 1999
14 */
15
16#ifndef DL_EXPORT
17# define DL_EXPORT(RTYPE) __declspec(dllexport) RTYPE
18#endif
19#ifndef DL_IMPORT
20# ifdef USE_DL_EXPORT
21# define DL_IMPORT(RTYPE) __declspec(dllexport) RTYPE
22# else
23# define DL_IMPORT(RTYPE) __declspec(dllimport) RTYPE
24# endif
25#endif
26
27#endif