2018-10-16 16:30 AEDT

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0000072mercuryBugpublic2008-09-17 08:33
Reporteriamphet 
Assigned Topetdr 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
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

-Relationships
+Relationships

-Notes

~0000149

petdr (developer)

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.
+Notes

-Issue History
Date Modified Username Field Change
2008-08-02 18:16 iamphet New Issue
2008-08-14 02:05 juliensf Status new => assigned
2008-08-14 02:05 juliensf Assigned To => juliensf
2008-09-17 08:31 petdr Assigned To juliensf => petdr
2008-09-17 08:33 petdr Status assigned => resolved
2008-09-17 08:33 petdr Resolution open => fixed
2008-09-17 08:33 petdr Note Added: 0000149
+Issue History