From 060668a1f6328309c6d22fba6f443e21d47db6b1 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 20 Oct 2007 14:34:43 +0000 Subject: [PATCH] export wxInvalidSize from DLL builds (patch 1805738) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49258 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/filename.h | 2 +- samples/console/console.cpp | 1 + src/common/filename.cpp | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/wx/filename.h b/include/wx/filename.h index 7eff2e8783..023366e020 100644 --- a/include/wx/filename.h +++ b/include/wx/filename.h @@ -87,7 +87,7 @@ enum #if wxUSE_LONGLONG // error code of wxFileName::GetSize() -extern wxULongLong wxInvalidSize; +extern WXDLLIMPEXP_DATA_BASE(const wxULongLong) wxInvalidSize; #endif // wxUSE_LONGLONG diff --git a/samples/console/console.cpp b/samples/console/console.cpp index 04c23b8225..abb4da0f22 100644 --- a/samples/console/console.cpp +++ b/samples/console/console.cpp @@ -4215,6 +4215,7 @@ static void TestSemaphore() #include "wx/snglinst.h" #endif // TEST_SNGLINST +#include "wx/filename.h" int main(int argc, char **argv) { #if wxUSE_UNICODE diff --git a/src/common/filename.cpp b/src/common/filename.cpp index 2d583d2719..7846362846 100644 --- a/src/common/filename.cpp +++ b/src/common/filename.cpp @@ -140,7 +140,7 @@ #if wxUSE_LONGLONG -wxULongLong wxInvalidSize = (unsigned)-1; +extern const wxULongLong wxInvalidSize = (unsigned)-1; #endif // wxUSE_LONGLONG