Commit 0e163d2c authored by Berker Peksag's avatar Berker Peksag Committed by GitHub

bpo-11063: Use more reliable way to check if uuid function exists (GH-4343)

parent 9a10ff4d
......@@ -9522,8 +9522,7 @@ main ()
{
#ifndef uuid_generate_time_safe
uuid_t out;
uuid_generate_time_safe(out);
void *x = uuid_generate_time_safe
#endif
;
......
......@@ -2680,8 +2680,7 @@ AC_CHECK_LIB(dld, shl_load) # Dynamic linking for HP-UX
AC_MSG_CHECKING(for uuid_generate_time_safe)
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <uuid/uuid.h>]], [[
#ifndef uuid_generate_time_safe
uuid_t out;
uuid_generate_time_safe(out);
void *x = uuid_generate_time_safe
#endif
]])],
[AC_DEFINE(HAVE_UUID_GENERATE_TIME_SAFE, 1, Define if uuid_generate_time_safe() exists.)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment