Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1 | #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 | * |
Guido van Rossum | ef4bb5f | 2000-07-01 00:16:13 +0000 | [diff] [blame] | 12 | * Copyright (c) 2000, BeOpen.com. |
| 13 | * Copyright (c) 1995-2000, Corporation for National Research Initiatives. |
| 14 | * Copyright (c) 1990-1995, Stichting Mathematisch Centrum. |
| 15 | * All rights reserved. |
| 16 | * |
| 17 | * See the file "Misc/COPYRIGHT" for information on usage and |
| 18 | * redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 19 | * |
| 20 | * - Chris Herborth (chrish@beoscentral.com) |
| 21 | * January 11, 1999 |
| 22 | */ |
| 23 | |
| 24 | #ifndef DL_EXPORT |
| 25 | # define DL_EXPORT(RTYPE) __declspec(dllexport) RTYPE |
| 26 | #endif |
| 27 | #ifndef DL_IMPORT |
| 28 | # ifdef USE_DL_EXPORT |
| 29 | # define DL_IMPORT(RTYPE) __declspec(dllexport) RTYPE |
| 30 | # else |
| 31 | # define DL_IMPORT(RTYPE) __declspec(dllimport) RTYPE |
| 32 | # endif |
| 33 | #endif |
| 34 | |
| 35 | #endif |