Re: double underscores in autoconf-defined symbol names

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Vadim Zeitlin wrote:
> I want configure to work with both mingw32 and cygwin and one of
> them (I think it was cygwin but I'm not 100% sure; I can recheck
> it though) has only _snprintf but not snprintf.

Hmm.  This trivial configure.ac:

  AC_INIT
  AC_CHECK_FUNCS([snprintf _snprintf])
  AC_CONFIG_HEADERS([config.h])
  AC_OUTPUT

results in a configure script which says "yes" for *both* snprintf
*and* _snprintf, both when I run it under Cygwin, and under MSYS/MinGW,
and it #defines both HAVE_SNPRINTF and HAVE__SNPRINTF appropriately,
in both cases.

Regards,
Keith.


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux