From 90cc15799fe189134d9580c1dc121d0b78df17ba Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Mon, 7 Mar 2016 22:07:50 +0000 Subject: tgl.lib first compile version. Only release x86 git-svn-id: http://svn.miranda-ng.org/main/trunk@16445 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- .../tgl/libevent/cmake/CheckFunctionExistsEx.c | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 protocols/Telegram/tgl/libevent/cmake/CheckFunctionExistsEx.c (limited to 'protocols/Telegram/tgl/libevent/cmake/CheckFunctionExistsEx.c') diff --git a/protocols/Telegram/tgl/libevent/cmake/CheckFunctionExistsEx.c b/protocols/Telegram/tgl/libevent/cmake/CheckFunctionExistsEx.c new file mode 100644 index 0000000000..5ee3e5913a --- /dev/null +++ b/protocols/Telegram/tgl/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