From 534db770dbe8c358ea267df20145e9793fb0275a Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sat, 12 Mar 2016 17:48:57 +0000 Subject: tgl inside telegram git-svn-id: http://svn.miranda-ng.org/main/trunk@16471 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- .../libevent/cmake/CheckFunctionExistsEx.c | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 protocols/Telegram/libevent/cmake/CheckFunctionExistsEx.c (limited to 'protocols/Telegram/libevent/cmake/CheckFunctionExistsEx.c') diff --git a/protocols/Telegram/libevent/cmake/CheckFunctionExistsEx.c b/protocols/Telegram/libevent/cmake/CheckFunctionExistsEx.c new file mode 100644 index 0000000000..5ee3e5913a --- /dev/null +++ b/protocols/Telegram/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