]> git.lyx.org Git - features.git/commitdiff
MSVC linking error fix:
authorAbdelrazak Younes <younes@lyx.org>
Sat, 21 Oct 2006 07:55:42 +0000 (07:55 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Sat, 21 Oct 2006 07:55:42 +0000 (07:55 +0000)
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

index 6d44e42f67aae5d8a02e5bdf0548af946a9b31a5..cec63fd880ee230a29d422807f0c48c8204525a5 100644 (file)
@@ -22,8 +22,6 @@
 
 #include <cstdlib>
 
-
-namespace lyx {
 #ifdef HAVE_UNISTD_H
 # include <unistd.h>
 #endif
@@ -46,6 +44,8 @@ using boost::scoped_array;
 using std::string;
 using std::endl;
 
+namespace lyx {
+
 namespace {
 
 inline