Sync(16): msvcrt headers (2)
Jon Griffiths
jon_p_griffiths at yahoo.com
Thu Jul 17 11:29:40 CDT 2003
Using our msvcrt headers with msvc causes an 'inconsistent dll
linkage' warning with atof(), which is present in both <math.h> and
<stdlib.h>. Including both of these headers gives us a warning since
our <stdlib.h> does not give an import specification whereas the
function has already been prototyped as being __declspec(dllimport)
in (msvc's) <math.h>.
This patch adds the import specification to atof() under this
condition; it is likely some other functions will need the same
treatment.
This patch should be applied after "Sync (15): msvcrt Headers (1)".
You'll need to rerun configure after applying.
Cheers,
Jon
License: X11
ChangeLog:
Jon Griffiths <jon_p_griffiths at yahoo.com>
+dlls/msvcrt/Makefile.in include/msvcrt/stdlib.h
Define _MSVCRT_ when building msvcrt.dll.
msvc: atof is defined as declspec(dllimport) by native <math.h>
=====
"Don't wait for the seas to part, or messiahs to come;
Don't you sit around and waste this chance..." - Live
jon_p_griffiths at yahoo.com
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: msvcrt_headers2.diff
Type: text/x-diff
Size: 995 bytes
Desc: msvcrt_headers2.diff
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20030717/87e38b98/msvcrt_headers2.bin
More information about the wine-patches
mailing list