michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef xrecore_h__ michael@0: #define xrecore_h__ michael@0: michael@0: #include "nscore.h" michael@0: michael@0: /** michael@0: * Import/export macros for libXUL APIs. michael@0: */ michael@0: #ifdef XPCOM_GLUE michael@0: #define XRE_API(type, name, params) \ michael@0: typedef type (NS_FROZENCALL * name##Type) params; \ michael@0: extern name##Type name NS_HIDDEN; michael@0: #elif defined(IMPL_LIBXUL) michael@0: #define XRE_API(type, name, params) EXPORT_XPCOM_API(type) name params; michael@0: #else michael@0: #define XRE_API(type, name, params) IMPORT_XPCOM_API(type) name params; michael@0: #endif michael@0: michael@0: #endif // xrecore_h__