Closed Bug 450167 Opened 16 years ago Closed 15 years ago

"mktemp.c(89) : warning C4273: 'mktemp' : inconsistent dll linkage"

Categories

(NSS :: Build, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 489010

People

(Reporter: sgautherie, Unassigned)

Details

[Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.1a2pre) Gecko/20080811184452 Minefield/3.1a2pre] (home, optim default) (W2Ksp4)

{{
.../security/dbm/src/../../../dbm/src/mktemp.c(89) : warning C4273: 'mktemp' : inconsistent dll linkage
        ...\Microsoft Visual Studio 8\VC\INCLUDE\io.h(327) : see previous definition of 'mktemp'
}}

***

Mozilla has
{{
char *
mktemp(char *path)
}}

VC++ has
{{
_CRT_NONSTDC_DEPRECATE(_mktemp) _CRT_INSECURE_DEPRECATE(_mktemp_s) _CRTIMP char * __cdecl mktemp(__inout_z char * _TemplateName);
}}
OS: All → Windows 2000
Hardware: All → PC
Assignee: nobody → nobody
Component: Security → Build
Product: Core → NSS
QA Contact: toolkit → build
Version: Trunk → unspecified
I wonder why we don't see this in our builds.  
Maybe because we use header files from one of Microsoft's "Platform SDK"s ?
Fwiw, I'm using
{{
Visual C++ 8 Express directory: [...]\Microsoft Visual Studio 8\VC
Platform SDK directory: [...]\Microsoft Platform SDK for Windows Server 2003 R2
}}
Version: unspecified → trunk
The patch for bug 489010 will fix this as a side effect.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.