From 87e34d97845194f013d666d56f9b96dc64379f68 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Sat, 21 Oct 2006 07:55:42 +0000 Subject: [PATCH] MSVC linking error fix: support.lib(tempname.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) int __cdecl lyx::_open(char const *,int,int)" (__imp_?_open@lyx@@YAHPBDHH@Z) referenced in function "int __cdecl lyx::`anonymous namespace'::make_tempfile(char *)" (?make_tempfile@?A0xcf85a5f4@lyx@@YAHPAD@Z) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15427 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/support/tempname.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/support/tempname.C b/src/support/tempname.C index 6d44e42f67..cec63fd880 100644 --- a/src/support/tempname.C +++ b/src/support/tempname.C @@ -22,8 +22,6 @@ #include - -namespace lyx { #ifdef HAVE_UNISTD_H # include #endif @@ -46,6 +44,8 @@ using boost::scoped_array; using std::string; using std::endl; +namespace lyx { + namespace { inline -- 2.39.2