Unverified Kaydet (Commit) ced0adb2 authored tarafından Ned Deily's avatar Ned Deily Kaydeden (comit) GitHub

bpo-32493: Correct test for uuid_enc_be availability in configure.ac. (GH-7511) (GH-7567)

üst ea62ce7f
Correct test for ``uuid_enc_be`` availability in ``configure.ac``.
Patch by Michael Felt.
\ No newline at end of file
...@@ -9632,9 +9632,7 @@ main () ...@@ -9632,9 +9632,7 @@ main ()
{ {
#ifndef uuid_enc_be #ifndef uuid_enc_be
uuid_t uuid; void *x = uuid_enc_be
unsigned char buf[sizeof(uuid)];
uuid_enc_be(buf, &uuid);
#endif #endif
; ;
......
...@@ -2716,9 +2716,7 @@ void *x = uuid_create ...@@ -2716,9 +2716,7 @@ void *x = uuid_create
AC_MSG_CHECKING(for uuid_enc_be) AC_MSG_CHECKING(for uuid_enc_be)
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <uuid.h>]], [[ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <uuid.h>]], [[
#ifndef uuid_enc_be #ifndef uuid_enc_be
uuid_t uuid; void *x = uuid_enc_be
unsigned char buf[sizeof(uuid)];
uuid_enc_be(buf, &uuid);
#endif #endif
]])], ]])],
[AC_DEFINE(HAVE_UUID_ENC_BE, 1, Define if uuid_enc_be() exists.) [AC_DEFINE(HAVE_UUID_ENC_BE, 1, Define if uuid_enc_be() 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