summaryrefslogtreecommitdiff
path: root/setup_native
diff options
context:
space:
mode:
authorPeter Foley <pefoley2@verizon.net>2013-02-11 16:53:30 -0500
committerPeter Foley <pefoley2@verizon.net>2013-02-11 16:57:06 -0500
commit33b838a449d2bc320c3a509b870ecbe9d620ffe4 (patch)
treead5ef357ff70209f9ae7984d65dad9db539025cb /setup_native
parentbbe6f3f59b72cbb3917f43265c59d084bab7cf6a (diff)
stdcall and declspec(dllexport) don't play nicely together
Change-Id: I56da76771790cb6824ac3d01072d9143cb580741
Diffstat (limited to 'setup_native')
-rw-r--r--setup_native/Library_sellangmsi.mk4
-rw-r--r--setup_native/source/win32/customactions/sellang/sellang.cxx2
-rwxr-xr-xsetup_native/source/win32/customactions/sellang/sellang.def4
-rw-r--r--setup_native/source/win32/customactions/sellang/sorttree.cxx2
4 files changed, 10 insertions, 2 deletions
diff --git a/setup_native/Library_sellangmsi.mk b/setup_native/Library_sellangmsi.mk
index e32e7f67126c..41b6fae897c9 100644
--- a/setup_native/Library_sellangmsi.mk
+++ b/setup_native/Library_sellangmsi.mk
@@ -13,6 +13,10 @@ $(eval $(call gb_Library_add_defs,sellangmsi,\
-D_STLP_USE_STATIC_LIB \
))
+$(eval $(call gb_Library_add_ldflags,sellangmsi,\
+ /DEF:$(SRCDIR)/setup_native/source/win32/customactions/sellang/sellang.def \
+))
+
$(eval $(call gb_Library_add_exception_objects,sellangmsi,\
setup_native/source/win32/customactions/sellang/sellang \
setup_native/source/win32/customactions/sellang/sorttree \
diff --git a/setup_native/source/win32/customactions/sellang/sellang.cxx b/setup_native/source/win32/customactions/sellang/sellang.cxx
index 14576d1d31b8..b6f7ec559ea0 100644
--- a/setup_native/source/win32/customactions/sellang/sellang.cxx
+++ b/setup_native/source/win32/customactions/sellang/sellang.cxx
@@ -232,7 +232,7 @@ void addMatchingDictionaries(
}
-extern "C" __declspec(dllexport) UINT __stdcall SelectLanguage( MSIHANDLE handle )
+extern "C" UINT __stdcall SelectLanguage( MSIHANDLE handle )
{
char feature[100];
MSIHANDLE database, view, record;
diff --git a/setup_native/source/win32/customactions/sellang/sellang.def b/setup_native/source/win32/customactions/sellang/sellang.def
new file mode 100755
index 000000000000..8d3c4d44cd00
--- /dev/null
+++ b/setup_native/source/win32/customactions/sellang/sellang.def
@@ -0,0 +1,4 @@
+LIBRARY "sellangmsi.dll"
+EXPORTS
+ SelectLanguage
+ SortTree \ No newline at end of file
diff --git a/setup_native/source/win32/customactions/sellang/sorttree.cxx b/setup_native/source/win32/customactions/sellang/sorttree.cxx
index e0f3169d0a0b..9472a49bd82d 100644
--- a/setup_native/source/win32/customactions/sellang/sorttree.cxx
+++ b/setup_native/source/win32/customactions/sellang/sorttree.cxx
@@ -18,7 +18,7 @@
#pragma warning(pop)
#endif
-extern "C" __declspec(dllexport) UINT __stdcall SortTree(MSIHANDLE)
+extern "C" UINT __stdcall SortTree(MSIHANDLE)
{
// Sort items (languages) in SelectionTree control, fdo#46355