Re: [PATCH] Include _CRTIMP in _putenv() declaration in EXE wrapper?sources.
Mike Frysinger <[email protected]> Sun, 14 Jan 2024 00:56:31 -0500
| Newsgroups | gmane.comp.gnu.libtool.patches |
|---|---|
| Message-ID | <ZaN3jySluSa9pmR0@vapier> |
On 07 Jul 2011 15:45, Vadim Zeitlin wrote: > Charles Wilson <libtool <at> cwilson.fastmail.fm> writes: > > On 6/23/2011 5:34 AM, Vadim Zeitlin wrote: > > > Re-declaring _putenv() without _CRTIMP in strict ANSI mode when using > > > MinGW resulted in a warning because of a conflict with the previous > > > declaration that did use _CRTIMP. > > > > > > Simply add _CRTIMP to our declaration to avoid it. > > > > > -int _putenv (const char *); > > > +_CRTIMP int _putenv (const char *); > > > > Probably should also add __cdecl (for correctness, not warning > > suppression) in case the user has done a -mrtd. > > > > _CRTIMP int __cdecl _putenv (const char*); > > Sorry for the delay, I left aside my struggles with libtool for some time, > but am getting back to it now as I'd really like to not have to return to > this again later. > > It's not totally clear to me if I should make this trivial change myself > or whether this would be done by whoever applies the patch? FWIW I clearly > agree that __cdecl should be there, I just didn't think about -mrtd case. i've done it this time for you due to the vintage, but for future reference, you should always make the updates and post v2/etc... in response to your original patch. -mike
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEuQK1JxMl+JKsJRrUQWM7n+g39YEFAmWjd48ACgkQQWM7n+g3 9YHTLhAA1i+CKMvZ3u0wEWW2RzNbXcyPlA1uGTDscYKU5SglVZ1akkhbf1Xn7cvJ 5dOslhJOvbDSjvjPIAph0m6KrrD8nuC/BUor3w3Jj7p8Er9imrU/0SsRZ7IpaJVW mFDUNenxgOxVQ9mkb3+2lmts2dzXgrACrA2pNMH/ewgQaD9Z5lJ2KOhICJTvh3Iw d76AUhCCxpzOjez+RjUieOcfJJngzFXFxg93z+kKpoCzw8o5apDYOT27uIyqZQeU K5KlsjJjwEWTuXX8q8p6ZmgNaIucJT7Q6CYPZUmZ+qafNkfE3J1vW1xIDNYBj+SA rHgorbesQp7K1Lb4f/qOitbE+C/o8gtdSXL+yjmVNYmu1rKt9J64tWOCkbZJBiMK Parg3Ls/gtHLQ1E3F1KkMfr8jFLjVDcTXFUWu1JulLRjypvVQx4mICSeLMM3E43Z ZTHQ9h1R8MM37PqR5yJK59RYO5l92LAbtMxWJIq8/gzDTE3f2qqRk6QRUCICKygq MukCkn+3YwDpxhYqrhIbge82IkRL2OVsUZ6P1+fle9JtKA/vndfc3nGOkB64V55q 1g3jzxJN/w/0YuqsF+ILhzJLiT6pV+ognWOvToTsdDA0ZLAJNmCpJMwo2Mavp5ND kFKMuIQzJd6rTA+tPhf6MofwqVI+4B0nWgbFeOyFxjNAKcI3aOE= =FGZy -----END PGP SIGNATURE-----