X-Git-Url: https://git.saurik.com/apple/objc4.git/blobdiff_plain/7c0e6487d7b67b6bf6c632300ee4b74e8950b051..7af964d1562d70f51a8e9aca24215ac3d83d0624:/runtime/objc-api.h diff --git a/runtime/objc-api.h b/runtime/objc-api.h index 5acebfe..8761509 100644 --- a/runtime/objc-api.h +++ b/runtime/objc-api.h @@ -26,6 +26,7 @@ #define _OBJC_OBJC_API_H_ #include +#include /* * OBJC_API_VERSION 0 or undef: Tiger and earlier API only @@ -48,11 +49,23 @@ # endif #endif -#if !defined(OBJC_EXPORT) +#if !defined(OBJC_EXTERN) # if defined(__cplusplus) -# define OBJC_EXPORT extern "C" +# define OBJC_EXTERN extern "C" +# else +# define OBJC_EXTERN extern +# endif +#endif + +#if !defined(OBJC_EXPORT) +# if TARGET_OS_WIN32 +# if defined(BUILDING_OBJC) +# define OBJC_EXPORT OBJC_EXTERN __declspec(dllexport) +# else +# define OBJC_EXPORT OBJC_EXTERN __declspec(dllimport) +# endif # else -# define OBJC_EXPORT extern +# define OBJC_EXPORT OBJC_EXTERN # endif #endif @@ -60,4 +73,12 @@ # define OBJC_IMPORT extern #endif +#ifndef __DARWIN_NULL +#define __DARWIN_NULL NULL +#endif + +#if !defined(OBJC_INLINE) +# define OBJC_INLINE __inline +#endif + #endif