[EMAIL PROTECTED] wrote:
Author: younes
Date: Sat Oct 21 09:26:07 2006
New Revision: 15425
URL: http://www.lyx.org/trac/changeset/15425
Log:
MSVC compilation fix.
[...]
==============================================================================
--- lyx-devel/trunk/src/support/tempname.C (original)
+++ lyx-devel/trunk/src/support/tempname.C Sat Oct 21 09:26:07 2006
@@ -55,7 +55,7 @@
return ::mkstemp(templ);
#elif defined(HAVE_MKTEMP)
// This probably just barely works...
- ::mktemp(templ);
+ mktemp(templ);
# if defined (HAVE_OPEN)
# if (!defined S_IRUSR)
# define S_IRUSR S_IREAD
@@ -63,7 +63,7 @@
# endif
return ::open(templ, O_RDWR | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR);
# elif defined (HAVE__OPEN)
- return ::_open(templ,
+ return _open(templ,
_O_RDWR | _O_CREAT | _O_EXCL,
_S_IREAD | _S_IWRITE);
I am not so sure about this last "fix". While it compiles, it does not link:
support.lib(tempname.obj) : error LNK2019: unresolved external symbol
"__declspec(dllimport) int __cdecl lyx::_open(char const *,int,int)"
([EMAIL PROTECTED]@@[EMAIL PROTECTED]) referenced in function "int __cdecl
lyx::`anonymous namespace'::make_tempfile(char *)"
([EMAIL PROTECTED]@lyx@@[EMAIL PROTECTED])
D:\devel\lyx\trunk\development\cmake\bin\Debug\lyx-qt4.exe : fatal error
LNK1120: 1 unresolved externals
Abdel.