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 |
Guido van Rossum | 8586991 | 2000-09-01 23:29:29 +0000 | [diff] [blame] | 10 | * Python. |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 11 | * |
| 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 |