Mercury Bugs - mercury
View Issue Details
0000072mercuryBugpublic2008-08-02 18:162008-09-17 08:33
Reporteriamphet 
Assigned Topetdr 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000072: Erroneous reference to snprintf when compiling mercury_wrapper.c with MSVC
DescriptionThere are several several references to snprintf in mercury_wrapper.c without autoconf checks.

It seems the correct way is to add lines below at the top of the file

#if defined(MR_HAVE__SNPRINTF) && ! defined(MR_HAVE_SNPRINTF)
  #define snprintf _snprintf
#endif
TagsNo tags attached.
Attached Files

Notes
(0000149)
petdr   
2008-09-17 08:33   
I applied three patches on 2008-09-16, one of which fixes this bug. The three patches find a 64 bit integer, detect no unistd.h when compiler flex c code and finally fixing this bug.

Issue History
2008-08-02 18:16iamphetNew Issue
2008-08-14 02:05juliensfStatusnew => assigned
2008-08-14 02:05juliensfAssigned To => juliensf
2008-09-17 08:31petdrAssigned Tojuliensf => petdr
2008-09-17 08:33petdrStatusassigned => resolved
2008-09-17 08:33petdrResolutionopen => fixed
2008-09-17 08:33petdrNote Added: 0000149