Bug 350166 - stop exporting typelib/xpt functions, r=darin

This commit is contained in:
benjamin%smedbergs.us 2006-08-28 15:04:06 +00:00
Родитель 73ec076970
Коммит c8ddc264c4
2 изменённых файлов: 5 добавлений и 20 удалений

Просмотреть файл

@ -47,25 +47,11 @@
/*
* The linkage of XPT API functions differs depending on whether the file is
* used within the XPT library or not. Any source file within the XPT
* library should define EXPORT_XPT_API whereas any client of the library
* should not.
* The XPT library is statically linked: no functions are exported from
* shared libraries.
*/
#ifdef EXPORT_XPT_API
#define XPT_PUBLIC_API(t) PR_IMPLEMENT(t)
#define XPT_PUBLIC_DATA(t) PR_IMPLEMENT_DATA(t)
#else
#ifdef _WIN32
# define XPT_PUBLIC_API(t) __declspec(dllimport) t
# define XPT_PUBLIC_DATA(t) __declspec(dllimport) t
#else
# define XPT_PUBLIC_API(t) PR_IMPLEMENT(t)
# define XPT_PUBLIC_DATA(t) t
#endif
#endif
#define XPT_FRIEND_API(t) XPT_PUBLIC_API(t)
#define XPT_FRIEND_DATA(t) XPT_PUBLIC_DATA(t)
#define XPT_PUBLIC_API(t) t
#define XPT_PUBLIC_DATA(t) t
PR_BEGIN_EXTERN_C

Просмотреть файл

@ -50,8 +50,7 @@ SIMPLE_PROGRAMS = PrimitiveTest$(BIN_SUFFIX) SimpleTypeLib$(BIN_SUFFIX)
CSRCS = PrimitiveTest.c SimpleTypeLib.c
LIBS = \
$(XPCOM_LIBS) \
$(NSPR_LIBS) \
$(DIST)/lib/$(LIB_PREFIX)xpt.$(LIB_SUFFIX) \
$(NULL)
include $(topsrcdir)/config/rules.mk