From 2aa4a82499d4becd2284cdb482213d541b8804dd Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 28 Apr 2024 16:29:10 +0200 Subject: Adding upstream version 86.0.1. Signed-off-by: Daniel Baumann --- .../libevent/cmake/CheckFunctionExistsEx.c | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 ipc/chromium/src/third_party/libevent/cmake/CheckFunctionExistsEx.c (limited to 'ipc/chromium/src/third_party/libevent/cmake/CheckFunctionExistsEx.c') diff --git a/ipc/chromium/src/third_party/libevent/cmake/CheckFunctionExistsEx.c b/ipc/chromium/src/third_party/libevent/cmake/CheckFunctionExistsEx.c new file mode 100644 index 0000000000..5ee3e5913a --- /dev/null +++ b/ipc/chromium/src/third_party/libevent/cmake/CheckFunctionExistsEx.c @@ -0,0 +1,30 @@ +#ifdef CHECK_FUNCTION_EXISTS + +#ifndef _WIN32 +char CHECK_FUNCTION_EXISTS(); +#endif + +#ifdef __CLASSIC_C__ +int main(){ + int ac; + char*av[]; +#else +int main(int ac, char*av[]){ +#endif +#ifdef _WIN32 + void * p = &CHECK_FUNCTION_EXISTS; +#else + CHECK_FUNCTION_EXISTS(); +#endif + if(ac > 1000) + { + return *av[0]; + } + return 0; +} + +#else /* CHECK_FUNCTION_EXISTS */ + +# error "CHECK_FUNCTION_EXISTS has to specify the function" + +#endif /* CHECK_FUNCTION_EXISTS */ -- cgit v1.2.3